Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python telegram bot send image

If you have local image path:

bot.send_photo(chat_id, photo=open('path', 'rb'))
If you have url of image from internet:

bot.send_photo(chat_id, 'your URl')
 
PREVIOUS NEXT
Tagged: #python #telegram #bot #send #image
ADD COMMENT
Topic
Name
4+5 =