Search
 
SCRIPT & CODE EXAMPLE
 

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')
Comment

reply_photo bot telegram python

# al usar un bot mediante telegram.ext, creamos un metodo que reciba el Update
# para poder responderle con una foto
def echo(update:Update, context:CallbackContext):
	update.message.reply_photo(photo=open('ruta_foto', 'rb'))
Comment

PREVIOUS NEXT
Code Example
Python :: python input integer 
Python :: draw a circle in python turtle 
Python :: Iterate through python string starting at index 
Python :: get columns that contain null values pandas 
Python :: python cv2.Canny() 
Python :: count items in list 
Python :: open mat python 
Python :: find index of pandas column 
Python :: django widgets 
Python :: extract text regex python 
Python :: pandas strips spaces in dataframe 
Python :: python open file relative to module 
Python :: how to cancel a input in python 
Python :: python ceil 
Python :: find width and height of imported video frame opencv2 
Python :: how shorten with enter long script python 
Python :: scrfoll with selenium python 
Python :: python print user input 
Python :: compute eigenvalue python 
Python :: unlimited keyword arguments python 
Python :: how to iterate pyspark dataframe 
Python :: mob psycho 100 
Python :: python assers 
Python :: python gaussian elimination 
Python :: sorting by second element 
Python :: how to reference a file in python 
Python :: how to do http requetss python 
Python :: python textbox 
Python :: google smtp 
Python :: python download for ubuntu 20.04 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =