Unable to send documents larger than 2 GB
mrb0098 opened this issue · 2 comments
mrb0098 commented
Hello
I use send_document
function to send documents in Telegram
But when the file size is more than 2 GB, the function throws an exception, but no error is displayed in the log.
try :
await client.send_document(
chat_id=my_chat_id,
document=mydocument,
caption=mycaption)
except Exception as e:
#No information is displayed
logger.error(e)
mrb0098 commented
any solution until now ?!
pylakey commented
Files larger than 2 GB are not supported for usual accounts in telegram. You can send them only with Telegram premium. Current version of library doesn't support telegram premium yet. So you are not able to send files >2GB with aiotdlib.
Actually, I don't now why error is not logged properly in your example, try to add exc_info=True