@bot.message_handler(content_types=['video'])
def video_maker(message):
chat_id = message.chat.id
file_info = bot.get_file(message.video.file_id)
downloaded_file = bot.download_file(file_info.file_path)
src = 'test/' + file_info.file_path
with open(src, 'wb') as new_file:
new_file.write(downloaded_file)
bot.reply_to(message, "Я сохранил ваше видео!"
in set_webhook pass
drop_pending_updates=True