Answer the question
In order to leave comments, you need to log in
How to change the telegram bot photo to a new one?
I’m writing a telegram bot, the bot sends a welcome photo and offers a product
I want to make it so that when you click on the product, the photo and text change, I solved the problem with the text, but the problem with the photo
is the code itself
Answer the question
In order to leave comments, you need to log in
You send a picture separately, a text separately. Using the send_photo method, you can send not only a photo, but also a caption to it, and even a block of buttons. And then change the photo using the edit_message_media method .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question