1

我正在尝试使用 sendPhoto 方法将图像从驱动器发送到电报,但我不能。诀窍是什么?

我正在使用 Python 3.6.7 我的代码如下:

import sys
import telepot
import aiohttp
import asyncio
import os
import time 

bot = telepot.Bot('55615????:AA????)
bot.getMe()
id=32????
bot.sendPhoto(chatId, str(open("th-623777.jpg", os.O_RDONLY)) )
4

0 回答 0