Answer the question
In order to leave comments, you need to log in
How to use sendMediaGroup method in Telebot?
Hello! Can you tell me how can I use the sendMediaGroup method in Telebot? The documentation specifies a list that contains the media data. In this case, the usual list of links to photos returns an error. What is the problem?
Answer the question
In order to leave comments, you need to log in
In this case, the usual list of links to photos returns an error. What is the problem?
media
accepts a list of typesInputMediaAudio, InputMediaDocument, InputMediaPhoto and InputMediaVideo. Open the type you need in the documentation and see what parameters it takes
media
, caption
and parse_mode
. telebot.types
medias = [types.InputMediaPhoto('https://habrastorage.org/webt/61/99/de/6199de8312758776787774.png'), types.InputMediaPhoto('https://habrastorage.org/getpro/habr/upload_files/1fd/40a/c44/1fd40ac441a0aee55fc90e67997437af.png')]
bot.send_media_group(chat_id, medias)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question