B
B
bybacapitan2022-04-21 11:00:45
Python
bybacapitan, 2022-04-21 11:00:45

How to find out file_id for video_note file type?

Hello, you need to find out the file_id of the so-called "circle" in the telegram,
if I use this code nothing comes out

@bot.message_handler(content_types=["video"])
def handle_video(message):
  video_id=message.video.file_id
  print(video_id)
  bot.send_message(message.chat.id, video_id)

but it reacts to ordinary videos, what should I do / fix to make it work?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2022-04-21
@bybacapitan

video_note called content_type

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question