Thread Data¶
-
class
fbchat.PageData(*, session, id, photo, name, last_active=None, message_count=None, plan=None, url=None, city=None, likes=None, sub_title=None, category=None)[source]¶ Represents data about a Facebook page.
Inherits
Page, and implementsThreadABC.-
photo¶ The page’s picture
-
name¶ The name of the page
-
last_active¶ When the thread was last active / when the last message was sent
-
message_count¶ Number of messages in the thread
-
url¶ The page’s custom URL
-
city¶ The name of the page’s location city
-
likes¶ Amount of likes the page has
-
sub_title¶ Some extra information about the page
-
category¶ The page’s category
-
-
class
fbchat.UserData(*, session, id, photo, name, is_friend, first_name, last_name=None, last_active=None, message_count=None, plan=None, url=None, gender=None, affinity=None, nickname=None, own_nickname=None, color=None, emoji=None)[source]¶ Represents data about a Facebook user.
Inherits
User, and implementsThreadABC.-
photo¶ The user’s picture
-
name¶ The name of the user
-
is_friend¶ Whether the user and the client are friends
-
first_name¶ The users first name
-
last_name¶ The users last name
-
last_active¶ When the thread was last active / when the last message was sent
-
message_count¶ Number of messages in the thread
-
url¶ The profile URL.
Nonefor Messenger-only users
-
gender¶ The user’s gender
-
affinity¶ From 0 to 1. How close the client is to the user
-
nickname¶ The user’s nickname
-
own_nickname¶ The clients nickname, as seen by the user
-
color¶ The message color
-
emoji¶ The default emoji
-
-
class
fbchat.GroupData(*, session, id, photo=None, name=None, last_active=None, message_count=None, plan=None, participants=NOTHING, nicknames=NOTHING, color=None, emoji=None, admins=NOTHING, approval_mode=None, approval_requests=NOTHING, join_link=None)[source]¶ Represents data about a Facebook group.
Inherits
Group, and implementsThreadABC.-
photo¶ The group’s picture
-
name¶ The name of the group
-
last_active¶ When the group was last active / when the last message was sent
-
message_count¶ Number of messages in the group
-
participants¶ The group thread’s participant user ids
-
nicknames¶ A dictionary, containing user nicknames mapped to their IDs
-
color¶ The groups’s message color
-
emoji¶ The groups’s default emoji
-