Peer#

class pyrogram.raw.base.Peer#

Identifier of a private chat, basic group, group or channel (see here for more info).

Many constructors in the API need to be stored in a local database upon reception and should only ever be updated reactively (passively) when received via updates or by other means (as specified in the documentation), to avoid overloading the server by continuously requesting changes for the same unchanged information.

Constructors:

This base type has 3 constructors available.

PeerChannel

Channel/supergroup

PeerChat

Group.

PeerUser

Chat partner

Functions:

This object can be returned by 1 function.

chatlists.GetLeaveChatlistSuggestions

Returns identifiers of pinned or always included chats from a chat folder imported using a chat folder deep link , which are suggested to be left when the chat folder is deleted.