Answer the question
In order to leave comments, you need to log in
How to send a picture sent by a user to python-telegram-bot?
How to make a bot send a picture sent to it by a user like an echo bot with text?
I made this handler:
updater.dispatcher.add_handler(MessageHandler(Filters.photo, get_pic))
def get_pic(update, context):
photo = update.message.file_id
update.send_photo(chat_id=update.message.chat_id, photo=photo, reply_markup=full_keyboard())
Answer the question
In order to leave comments, you need to log in
Searching in other people's codes led to this:
def get_pic(update, context):
photo = update.message.photo[-1]
update.message.reply_photo(photo=photo, reply_markup=full_keyboard())
context.bot.send_photo(chat_id=chat_id, photo=photo, reply_markup=full_kb)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question