slidgram.avatar

Classes

SetAvatarMixin

Mixin for XMPP entities that have avatars that represent them.

Module Contents

class slidgram.avatar.SetAvatarMixin[source]

Bases: slidge.core.mixins.AvatarMixin

Mixin for XMPP entities that have avatars that represent them.

Both slidge.LegacyContact and slidge.LegacyMUC use AvatarMixin.

session: slidgram.session.Session[source]
log: logging.Logger[source]
async update_chat_photo(photo)[source]
Parameters:

photo (pyrogram.types.ChatPhoto | pyrogram.types.Photo | None)

Return type:

None

async __download(file_id, unique_id)[source]
Parameters:
  • file_id (str)

  • unique_id (str)

Return type:

None