K
K
Kir Mozor2021-01-30 13:10:05
Python
Kir Mozor, 2021-01-30 13:10:05

How to send image with caption to pytelegrambotapi?

Question: I need to somehow send an image with a caption by file_Id
The user sends an image with a caption, in response I receive the file_Id of this image and the caption, then I send it to all bot participants
How can I do this?
I was able to send a simple message to all bot participants

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2021-01-30
@150_Kirill_150

Well, call the send function and specify the text
bot.send_photo(chat_id, 'FILEID', 'TEXT')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question