fbchat_muqit.Message¶
- class fbchat_muqit.Message¶
Bases:
StructRepresents a facebook messenger message
- __init__()¶
Methods
__copy__copy a struct
__delattr__(name, /)Implement delattr(self, name).
__dir__()Default dir() implementation.
__eq__(value, /)Return self==value.
__format__(format_spec, /)Default object formatter.
__ge__(value, /)Return self>=value.
__getattribute__(name, /)Return getattr(self, name).
__getstate__()Helper for pickle.
__gt__(value, /)Return self>value.
__hash__()Return hash(self).
__init__()__init_subclass__This method is called when a class is subclassed.
__le__(value, /)Return self<=value.
__lt__(value, /)Return self<value.
__ne__(value, /)Return self!=value.
__new__(*args, **kwargs)__reduce__reduce a struct
__reduce_ex__(protocol, /)Helper for pickle.
__replace__create a new struct with replacements
__repr__()Return repr(self).
__rich_repr__rich repr
__setattr__(name, value, /)Implement setattr(self, name, value).
__sizeof__()Size of object in memory, in bytes.
__str__()Return str(self).
__subclasshook__Abstract classes can override this to customize issubclass().
Attributes
List of attachments data that were sent such as Image, Video, Shared Facebook Post/ youtube videos etc.
Wether the the message can be unsent by client
Id of the message
if any users were mentioned
Type of message (Video, Image, Text, e.g.)
Id of the reactors
If this message was a reply to another message
The message sender's User id
The text of the message
The Thread location INBOX, ARCHIVE etc.
The thread message was sent to.
Users in the thread message was sent.
Type of the thread thread message was sent (User, Group, Page e.g.)
The timestamp message was sent.
wether the message is unsent for everyone
__annotations____doc____module____slots____struct_config____struct_defaults____struct_encode_fields____struct_fields__- attachments: List[ImageAttachment | VideoAttachment | GifAttachment | StickerAttachment | FileAttachment | AudioAttachment | PostAttachment | SharedAttachment | ReelAttachment | ProfileAttachment | ExternalAttachment | None] | None¶
List of attachments data that were sent such as Image, Video, Shared Facebook Post/ youtube videos etc.
- can_unsend: bool¶
Wether the the message can be unsent by client
- id: str¶
Id of the message
- message_type: MessageType¶
Type of message (Video, Image, Text, e.g.)
- reaction: List[MessageReaction] | None¶
Id of the reactors
- replied_to_message_id: str | None¶
- sender_id: str¶
The message sender’s User id
- text: str¶
The text of the message
- thread_folder: ThreadFolder¶
The Thread location INBOX, ARCHIVE etc.
- thread_id: str¶
The thread message was sent to.
- thread_participants: tuple[int] | None¶
Users in the thread message was sent.
- thread_type: ThreadType¶
Type of the thread thread message was sent (User, Group, Page e.g.)
- timestamp: int¶
The timestamp message was sent.
- unsent: bool¶
wether the message is unsent for everyone