我可以将savfig发送到python电报bot吗

我试图添加bot.sendPhoto(chat_id = chat_id,photo ='http://s33.postimg.org/plci93h4v/image.png'),在该文件中我有savfig,需要将图像发送到电报bot

product = 'someproduct'

我正在尝试将code:function中的savfig发送给电报机器人

tk623 回答:我可以将savfig发送到python电报bot吗

bot.send_photo(聊天ID,photo = open('plot_name.png','rb'))

本文链接:https://www.f2er.com/3132978.html

大家都在问