This commit is contained in:
bakatrouble 2019-04-28 14:43:26 +03:00
parent d1bf62eb91
commit 9ebd2f7097

View File

@ -268,8 +268,8 @@ def _process_message(bot: Bot, m: Message):
reply_to_message_id=reply_to_message_id, parse_mode='html') reply_to_message_id=reply_to_message_id, parse_mode='html')
elif hasattr(m, 'document') and m.document: elif hasattr(m, 'document') and m.document:
d = m.document d = m.document
did = d.file_id
if d.mime_type == 'video/mp4': if d.mime_type == 'video/mp4':
print(d.file_id)
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,
parse_mode='html') parse_mode='html')