E
E
Egor2020-08-21 22:05:38
Python
Egor, 2020-08-21 22:05:38

How to send a video via a telegram bot via a link?

It is necessary that when sending a link to a video on Vkontakte to the bot, he sends it to me already in media format to view it in the Telegram itself.
It does not work with a regular link obtained in this way:5f401ac0b8fdb020510839.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
UberPool, 2020-08-22
@UberPool

To do this, you need to download this video and send.
Video submission example.

data = open(filename,'rb') #замените на имя вашего файла
bot.send_video(message.chat.id, data)
data.close()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question