Peer

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

peerUser#9db1bc6d user_id:int = Peer;
peerChat#bad0e5bb chat_id:int = Peer;

Constructors

Constructor Description
peerUser Chat partner
peerChat Group.
peerChannel Channel/supergroup

Related pages

Peer database

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.