-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: module 'fbchat' has no attribute 'Session' #637
Comments
I have the same problem AttributeError: module 'fbchat' has no attribute 'Session' With the sample : import fbchat session = fbchat.Session.login("", "") |
When I installed it from source it solved the problem. It seems like the Session import was removed in the packaged version of the project.
|
not work for me
|
AttributeError: module 'fbchat' has no attribute 'Session'
import fbchat
session = fbchat.Session.login("", "")
listener = fbchat.Listener(session=session, chat_on=False, foreground=False)
for event in listener.listen():
if isinstance(event, fbchat.MessageEvent):
print(f"{event.message.text} from {event.author.id} in {event.thread.id}")
# If you're not the author, echo
if event.author.id != session.user.id:
event.thread.send_text(event.message.text)
The text was updated successfully, but these errors were encountered: