如何使用委托人机器人发送文档/照片?

时间:2019-04-13 22:05:00

标签: python telegram

这是我的问题: 我是开发电报机器人的新手,并且正在使用电报库。现在,我想发送jpg文件,但是每次尝试此错误时都会出现:

AttributeError: 'int' object has no attribute 'read'
ERROR:root:on_close() called due to AttributeError: 'int' object has no attribute 'read'

我认为这基于我创建机器人的方式,但是我不明白我需要更改的内容:

bot = telepot.DelegatorBot(TOKEN, [
            include_callback_query_chat_id(
            pave_event_space())(per_chat_id(), create_open, Customer, timeout=100)])
MessageLoop(bot).run_as_thread()

0 个答案:

没有答案