Raw.UpdateChannelParticipant
A participant has left, joined, was banned or admined in a channel or supergroup.
updateChannelParticipant#985d3abb flags:# via_chatlist:flags.3?true channel_id:long date:int actor_id:long user_id:long prev_participant:flags.0?ChannelParticipant new_participant:flags.1?ChannelParticipant invite:flags.2?ExportedChatInvite qts:int = Update;
export namespace Raw {
export class UpdateChannelParticipant {
constructor(params: {
viaChatlist?: boolean;
channelId: bigint;
date: number;
actorId: bigint;
userId: bigint;
prevParticipant?: Raw.TypeChannelParticipant;
newParticipant?: Raw.TypeChannelParticipant;
invite?: Raw.TypeExportedChatInvite;
qts: number;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0x985d3abb
Property
viaChatlist
: boolean or undefinedWhether the participant joined using a chat folder deep link.
channelId
: bigintChannel id
date
: numberDate of the event
actorId
: bigintUser that triggered the change (inviter, admin that kicked the user, or the even the userId itself)
userId
: bigintUser that was affected by the change
prevParticipant
: Raw.TypeChannelParticipant or undefinedPrevious participant status
newParticipant
: Raw.TypeChannelParticipant or undefinedNew participant status
invite
: Raw.TypeExportedChatInvite or undefinedChat invite used to join the channel/supergroup
qts
: numberNew qts value, see updates for more info.