K
K
Kash_Tan2022-04-12 20:19:49
Python
Kash_Tan, 2022-04-12 20:19:49

How to send large files using python-telegram-bot?

I want to send a file with the help of python-telegram-bot (in my case, a video), it says in an error that the file is too large and so that I can look in the telegram api, it seems like it can’t be more than 50mb.

mistake
telegram.error.NetworkError: File too large. Check telegram api limits https://core.telegram.org/bots/api#senddocument
Is there anyway to send such a file?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel_qr, 2022-04-13
@Pavel_qr

You can send this file to the bot, save the file_id, then send it using it
Write if you don't understand

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question