N
N
NoName22813372020-07-14 17:46:26
Python
NoName2281337, 2020-07-14 17:46:26

How to make a photo-echo of a bot in tg?

What code can do this ? It is

necessary that the user sends a photo to the Bot, and the bot sends this photo to the user again,

P = message.photo 
bot.send_photo(teleid, P)
#такой способ не работает

How?

pyTelegramBotApi module
(telebot)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-07-14
@NoName2281337

bot.send_photo(chat_id=id, photo=message.photo[0].file_id, caption=message.caption)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question