Answer the question
In order to leave comments, you need to log in
How to send large videos via telebot?
How can I send large videos via telebot? I wrote a bot that sends videos, it works with not big videos but when I send 200 mb it shows exceptions.
The code:
import telebot
bot = telebot.TeleBot("TOKEN", parse_mode=None)
@bot.message_handler(commands=['start', 'help'])
def send_welcome(message):
video = open('a.mp4', 'rb')
bot.send_video(message.chat.id, video, timeout=100)
bot.polling()
Answer the question
In order to leave comments, you need to log in
If the video weighs more than 50 MB, then send the video...
But you can use the MTProto API
For example, Python has the pyrogram library , which allows you to send files up to 1.5 Gb
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question