有没有一种方法可以用Python接收Facebook消息?

2024-10-06 06:32:41 发布

您现在位置:Python中文网/ 问答频道 /正文

我可以通过fbchat模块发送消息,但我找不到接收它们的方法。有办法吗?这就是我传递信息的方式

from fbchat import Client
from fbchat.models import *
client = Client(email,password)
while True:
    mssg=input('')
    client.sendMessage(mssg, thread_id=id, thread_type=ThreadType.USER/GROUP)

Tags: 模块方法fromimportclientid消息models