debug
This commit is contained in:
parent
9ebd2f7097
commit
5b71c4cfa8
1
main.py
1
main.py
@ -269,6 +269,7 @@ def _process_message(bot: Bot, m: Message):
|
|||||||
elif hasattr(m, 'document') and m.document:
|
elif hasattr(m, 'document') and m.document:
|
||||||
d = m.document
|
d = m.document
|
||||||
did = d.file_id
|
did = d.file_id
|
||||||
|
sentry_sdk.capture_message(did)
|
||||||
if d.mime_type == 'video/mp4':
|
if d.mime_type == 'video/mp4':
|
||||||
d.file_id = 'CgADAgAD-wIAAsWRKUpVBG3sEsYrGgI'
|
d.file_id = 'CgADAgAD-wIAAsWRKUpVBG3sEsYrGgI'
|
||||||
r = bot.send_document(uid, d.file_id, d.file_name, caption, reply_to_message_id=reply_to_message_id,
|
r = bot.send_document(uid, d.file_id, d.file_name, caption, reply_to_message_id=reply_to_message_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user