Link Search Menu Expand Document

Constructor: updateChannelParticipant

Back to constructors index

A participant has left, joined, was banned or admined in a channel or supergroup.

Attributes:

NameTypeRequiredDescription
via_chatlistBoolOptionalWhether the participant joined using a chat folder deep link ».
channel_idlongYesChannel ID
dateintYesDate of the event
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_participantChannelParticipantOptionalPrevious participant status
new_participantChannelParticipantOptionalNew participant status
inviteExportedChatInviteOptionalChat invite used to join the channel/supergroup
qtsintYesNew qts value, see updates » for more info.

Type: Update

Example:

$updateChannelParticipant = ['_' => 'updateChannelParticipant', 'via_chatlist' => Bool, 'channel_id' => long, 'date' => int, 'actor_id' => long, 'user_id' => long, 'prev_participant' => ChannelParticipant, 'new_participant' => ChannelParticipant, 'invite' => ExportedChatInvite, 'qts' => int];