【发布时间】:2021-04-24 07:05:22
【问题描述】:
我在发送照片时收到此错误:
Bot.sendPhoto(chat_id=update.effective_user.id,photo=open(f'{os.getcwd()}\\{update.effective_user.id}\\{i}', 'rb'))
TypeError: send_photo() missing 1 required positional argument: 'self'
我不知道如何设置self那里,我根据this issue编写代码,我坐在chat_id和photo。我还使用了.sendPhoto 我不知道为什么会收到send_photo() 错误。是错误还是我错过了什么?
【问题讨论】:
标签: python python-telegram-bot