【发布时间】:2020-11-10 09:29:27
【问题描述】:
我正在测试 python-twitter 的代码,一切似乎都很好,直到我尝试让它向某个 id 发布直接消息。
api.PostDirectMessage(3517181843, "some text test")
然后返回
Traceback (most recent call last):
File "c:/Users/Azizah Blackwood/Documents/GitHub/just-a-chatbot-test/chatbotwithdifferentlib.py", line 11, in <module>
api.PostDirectMessage(3517181843, "some text test")
File "C:\Users\Azizah Blackwood\AppData\Local\Programs\Python\Python37-32\lib\site-packages\twitter\api.py", line 3044, in PostDirectMessage
created_at=data['event']['created_timestamp'],
KeyError: 'event'
【问题讨论】:
标签: python twitter python-twitter