A user has joined or left a specific chat
updateChatParticipant#f3b3781f flags:# chat_id:int date:int actor_id:int user_id:int prev_participant:flags.0?ChatParticipant new_participant:flags.1?ChatParticipant invite:flags.2?ExportedChatInvite qts:int = Update;
Name | Type | Description |
---|---|---|
flags | # | Flags, see TL conditional fields |
chat_id | long | Chat ID |
date | int | When did this event occur |
actor_id | long | User that triggered the change (inviter, admin that kicked the user, or the even the user_id itself) |
user_id | long | User that was affected by the change |
prev_participant | flags.0?ChatParticipant | Previous participant info (empty if this participant just joined) |
new_participant | flags.1?ChatParticipant | New participant info (empty if this participant just left) |
invite | flags.2?ExportedChatInvite | The invite that was used to join the group |
qts | int | New qts value, see updates ยป for more info. |
How to handle channels, supergroups, gigagroups, basic groups, and what's the difference between them.
How to subscribe to updates and handle them properly.