Compare commits
3 Commits
c90f430741
...
c549ef71f0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c549ef71f0 | ||
|
|
237d6bb22c | ||
|
|
6bb6180f6c |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -163,3 +163,4 @@ cython_debug/
|
||||
|
||||
.venv/
|
||||
.env
|
||||
data/
|
||||
@@ -8,7 +8,7 @@ FROM base AS builder
|
||||
|
||||
COPY requirements.txt ./
|
||||
RUN --mount=type=cache,target=/tmp/pip_cache \
|
||||
python -m pip install --upgrade pip && \
|
||||
python3 -m pip install --upgrade pip && \
|
||||
pip install \
|
||||
-r requirements.txt \
|
||||
--extra-index-url https://www.piwheels.org/simple \
|
||||
|
||||
@@ -3,3 +3,4 @@ pyrogram==2.0.106
|
||||
tiktok_downloader==0.3.5
|
||||
uvloop==0.19.0
|
||||
tgcrypto==1.2.5
|
||||
sentry-sdk==2.15.0
|
||||
@@ -2,6 +2,7 @@ import datetime
|
||||
import integv
|
||||
import os
|
||||
import re
|
||||
import sentry_sdk
|
||||
import uvloop
|
||||
|
||||
from pyrogram import Client, filters
|
||||
@@ -21,6 +22,13 @@ log = logger.configure_logger(LOG_LEVEL)
|
||||
|
||||
uvloop.install()
|
||||
|
||||
sentry_sdk.init(
|
||||
dsn="https://12d7a075d483fc133cde0ed82e72ac45@o4508071875313664.ingest.de.sentry.io/4508075566694480",
|
||||
traces_sample_rate=1.0,
|
||||
profiles_sample_rate=1.0,
|
||||
enable_tracing=True
|
||||
)
|
||||
|
||||
app = Client("downloader_bot", api_id=API_ID,
|
||||
api_hash=API_HASH, bot_token=BOT_TOKEN)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user