我试图添加bot.sendPhoto(chat_id = chat_id,photo ='http://s33.postimg.org/plci93h4v/image.png'),在该文件中我有savfig,需要将图像发送到电报bot
product = 'someproduct'
我正在尝试将code:function中的savfig发送给电报机器人
答案 0 :(得分:0)
bot.send_photo(聊天ID,photo = open('plot_name.png','rb'))