python fbchat从消息请求获取消息

时间:2018-10-03 08:00:16

标签: python

我尝试使用python fbchat为我的私人消息创建自动回复,这是我当前的代码:

from fbchat import Client
from fbchat.models import *
client = Client('email@gmail.com', 'password')

print('Own id: {}'.format(client.uid))

# Fetches a list of the 20 top threads you're currently chatting with
threads = client.fetchThreadList()
# Fetches the next 10 threads
threads += client.fetchThreadList(before=20, limit=10)

print("Threads: {}\n".format(threads))

问题是90%的消息到达消息请求中,如何从消息请求中获取消息列表?

0 个答案:

没有答案