Link Search Menu Expand Document

Constructor: updateChatParticipant

Back to constructors index

A user has joined or left a specific chat

Attributes:

NameTypeRequiredDescription
chat_idlongYesChat ID
dateintYesWhen did this event occur
actor_idlongYesUser that triggered the change (inviter, admin that kicked the user, or the even the user_id itself)
user_idlongYesUser that was affected by the change
prev_participantChatParticipantOptionalPrevious participant info (empty if this participant just joined)
new_participantChatParticipantOptionalNew participant info (empty if this participant just left)
inviteExportedChatInviteOptionalThe invite that was used to join the group
qtsintYesNew 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];