Add Session.user in favor of Session.user_id

This commit is contained in:
Mads Marquart
2020-01-23 16:46:53 +01:00
parent 2c8dfc02c2
commit 01effb34b4
13 changed files with 26 additions and 26 deletions

View File

@@ -5,7 +5,7 @@ session = fbchat.Session.login("<email>", "<password>")
client = fbchat.Client(session)
thread = fbchat.User(session=session, id=session.user_id)
thread = session.user
# thread = fbchat.User(session=session, id="0987654321")
# thread = fbchat.Group(session=session, id="1234567890")
@@ -48,7 +48,7 @@ if isinstance(thread, fbchat.Group):
thread.set_title("<title>")
# Will change the nickname of the user `<user_id>` to `<new nickname>`
# Will change the nickname of the user `<user id>` to `<new nickname>`
thread.set_nickname(fbchat.User(session=session, id="<user id>"), "<new nickname>")
# Will set the typing status of the thread