V
V
Vollane2020-04-28 08:57:43
Python
Vollane, 2020-04-28 08:57:43

Telegram Bot how to set up sending photos?

I want to make a simple EchoBot, but not with text, but with a photo, you can somehow make it so that I would send a photo to the bot and he would answer me with the same photo.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Arseniy Kulikov, 2020-04-29
@Vollane

If still relevant: In telegrams, bots have a sendPhoto method. There you can shove either a file or its id. Your case - id, it is in the message sent by the user. Just output the json that will come to you in message and look for something like ['photo']['fileId']

T
Timur Pokrovsky, 2020-04-28
@Makaroshka007

Can

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question