fbchat_muqit.ImageAttachment

class fbchat_muqit.ImageAttachment

Bases: Struct

Image attachment with preview and dimensions.

__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

filename

The filename of the Image.

id

The Image Id of the Attachment.

large_preview

The preview of the image for desktop.

original_dimensions

The height and weight of the image.

original_extension

The extension of the Image, such as jpg, png

preview

The preview of the image.

render_as_sticker

wether sent as Sticker or not

thumbnail

The original Image probably.

type

Type of the attachment.

__annotations__

__doc__

__module__

__slots__

__struct_config__

__struct_defaults__

__struct_encode_fields__

__struct_fields__

filename: str

The filename of the Image.

id: str

The Image Id of the Attachment. The Id can be used to send picture without uploading to Facebook server.

large_preview: Image

The preview of the image for desktop.

original_dimensions: Dimension

The height and weight of the image.

original_extension: str

The extension of the Image, such as jpg, png

preview: Image

The preview of the image.

render_as_sticker: bool

wether sent as Sticker or not

thumbnail: Image

The original Image probably.

type: AttachmentType

Type of the attachment.