fbchat_muqit.Message

class fbchat_muqit.Message

Bases: Struct

Represents 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

attachments

List of attachments data that were sent such as Image, Video, Shared Facebook Post/ youtube videos etc.

can_unsend

Wether the the message can be unsent by client

id

Id of the message

mentions

if any users were mentioned

message_type

Type of message (Video, Image, Text, e.g.)

reaction

Id of the reactors

replied_to_message

If this message was a reply to another message

replied_to_message_id

sender_id

The message sender's User id

text

The text of the message

thread_folder

The Thread location INBOX, ARCHIVE etc.

thread_id

The thread message was sent to.

thread_participants

Users in the thread message was sent.

thread_type

Type of the thread thread message was sent (User, Group, Page e.g.)

timestamp

The timestamp message was sent.

unsent

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

mentions: List[Mention] | None

if any users were mentioned

message_type: MessageType

Type of message (Video, Image, Text, e.g.)

reaction: List[MessageReaction] | None

Id of the reactors

replied_to_message: Message | None

If this message was a reply to another message

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