Constructor: updateChatParticipant
A user has joined or left a specific chat
Attributes:
Name | Type | Required | Description |
---|---|---|---|
chat_id | long | Yes | Chat ID |
date | int | Yes | When did this event occur |
actor_id | long | Yes | User that triggered the change (inviter, admin that kicked the user, or the even the user_id itself) |
user_id | long | Yes | User that was affected by the change |
prev_participant | ChatParticipant | Optional | Previous participant info (empty if this participant just joined) |
new_participant | ChatParticipant | Optional | New participant info (empty if this participant just left) |
invite | ExportedChatInvite | Optional | The invite that was used to join the group |
qts | int | Yes | New qts value, see updates » for more info. |
Type: Update
Example:
$updateChatParticipant = ['_' => 'updateChatParticipant', 'chat_id' => long, 'date' => int, 'actor_id' => long, 'user_id' => long, 'prev_participant' => ChatParticipant, 'new_participant' => ChatParticipant, 'invite' => ExportedChatInvite, 'qts' => int];