Answer the question
In order to leave comments, you need to log in
How to make a telegram bot send photos and text with a minimum number of Python commands?
I'm making a telegram bot on telegramBotApi (in Python) and I need the bot to send a jpg file and a text message. Thanks to those who answer.
Answer the question
In order to leave comments, you need to log in
with open('Ваш путь к картинке', 'rb') as photo:
bot.send_photo(chat_id, photo = photo, caption = 'Подпись к вашему изображению (не обязательно)')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question