Remove ThreadType completely
This commit is contained in:
@@ -5,15 +5,11 @@ session = fbchat.Session.login("<email>", "<password>")
|
||||
|
||||
print("Own id: {}".format(sesion.user_id))
|
||||
|
||||
# Create helper client class
|
||||
client = fbchat.Client(session)
|
||||
# Create helper User class
|
||||
user = fbchat.Thread(session=session, id=session.user_id)
|
||||
|
||||
# Send a message to yourself
|
||||
client.send(
|
||||
fbchat.Message(text="Hi me!"),
|
||||
thread_id=session.user_id,
|
||||
thread_type=fbchat.ThreadType.USER,
|
||||
)
|
||||
user.send(fbchat.Message(text="Hi me!"))
|
||||
|
||||
# Log the user out
|
||||
session.logout()
|
||||
|
Reference in New Issue
Block a user