with open ('jpeg.py', 'r') as file:
peg=file.readlines()
pic=str(peg[1])
print (pic)
bot.send_photo(message.chat.id,photo= pic)
文件中的 ID 已正确读取。该机器人不发送照片
with open ('jpeg.py', 'r') as file:
peg=file.readlines()
pic=str(peg[1])
print (pic)
bot.send_photo(message.chat.id,photo= pic)
文件中的 ID 已正确读取。该机器人不发送照片
啥
ID?ID照片来自电报服务器?如果是,那么你需要转移它,send_photo()无需open()这张照片是机器人自己拍的,还是
ID从别的地方拍的?请详细描述