UpdateChannelParticipant

class pyrogram.raw.types.UpdateChannelParticipant

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

Constructor of Update.

Details:
  • Layer: 227

  • ID: 985D3ABB

Parameters:
  • channel_id (int 64-bit) – Channel ID

  • date (int 32-bit) – Date of the event

  • actor_id (int 64-bit) – User that triggered the change (inviter, admin that kicked the user, or the even the user_id itself)

  • user_id (int 64-bit) – User that was affected by the change

  • qts (int 32-bit) – New qts value, see updates » for more info.

  • via_chatlist (bool, optional) – Whether the participant joined using a chat folder deep link ».

  • prev_participant (ChannelParticipant, optional) – Previous participant status

  • new_participant (ChannelParticipant, optional) – New participant status

  • invite (ExportedChatInvite, optional) – Chat invite used to join the channel/supergroup

TL Schema

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

Parameter Tree

UpdateChannelParticipant
├── via_chatlist → true (optional)
├── channel_id → long
├── date → int
├── actor_id → long
├── user_id → long
├── prev_participant → ChannelParticipant (optional)
│ ├── ChannelParticipant
│ │ ├── user_id → long
│ │ ├── date → int
│ │ ├── subscription_until_date → int (optional)
│ │ └── rank → string (optional)
│ │ ├── via_request → true (optional)
│ │ ├── user_id → long
│ │ ├── inviter_id → long
│ │ ├── date → int
│ │ ├── subscription_until_date → int (optional)
│ │ └── rank → string (optional)
│ │ ├── user_id → long
│ │ ├── admin_rights → ChatAdminRights
│ │ │ └── ChatAdminRights
│ │ │ ├── change_info → true (optional)
│ │ │ ├── post_messages → true (optional)
│ │ │ ├── edit_messages → true (optional)
│ │ │ ├── delete_messages → true (optional)
│ │ │ ├── ban_users → true (optional)
│ │ │ ├── invite_users → true (optional)
│ │ │ ├── pin_messages → true (optional)
│ │ │ ├── add_admins → true (optional)
│ │ │ ├── anonymous → true (optional)
│ │ │ ├── manage_call → true (optional)
│ │ │ ├── other → true (optional)
│ │ │ ├── manage_topics → true (optional)
│ │ │ ├── post_stories → true (optional)
│ │ │ ├── edit_stories → true (optional)
│ │ │ ├── delete_stories → true (optional)
│ │ │ ├── manage_direct_messages → true (optional)
│ │ │ └── manage_ranks → true (optional)
│ │ └── rank → string (optional)
│ │ ├── can_edit → true (optional)
│ │ ├── is_self → true (optional)
│ │ ├── user_id → long
│ │ ├── inviter_id → long (optional)
│ │ ├── promoted_by → long
│ │ ├── date → int
│ │ ├── admin_rights → ChatAdminRights
│ │ │ └── ChatAdminRights
│ │ │ ├── change_info → true (optional)
│ │ │ ├── post_messages → true (optional)
│ │ │ ├── edit_messages → true (optional)
│ │ │ ├── delete_messages → true (optional)
│ │ │ ├── ban_users → true (optional)
│ │ │ ├── invite_users → true (optional)
│ │ │ ├── pin_messages → true (optional)
│ │ │ ├── add_admins → true (optional)
│ │ │ ├── anonymous → true (optional)
│ │ │ ├── manage_call → true (optional)
│ │ │ ├── other → true (optional)
│ │ │ ├── manage_topics → true (optional)
│ │ │ ├── post_stories → true (optional)
│ │ │ ├── edit_stories → true (optional)
│ │ │ ├── delete_stories → true (optional)
│ │ │ ├── manage_direct_messages → true (optional)
│ │ │ └── manage_ranks → true (optional)
│ │ └── rank → string (optional)
│ │ ├── left → true (optional)
│ │ ├── peer → Peer
│ │ │ ├── PeerUser
│ │ │ │ └── user_id → long
│ │ │ ├── PeerChat
│ │ │ │ └── chat_id → long
│ │ │ └── PeerChannel
│ │ │ └── channel_id → long
│ │ ├── kicked_by → long
│ │ ├── date → int
│ │ ├── banned_rights → ChatBannedRights
│ │ │ └── ChatBannedRights
│ │ │ ├── view_messages → true (optional)
│ │ │ ├── send_messages → true (optional)
│ │ │ ├── send_media → true (optional)
│ │ │ ├── send_stickers → true (optional)
│ │ │ ├── send_gifs → true (optional)
│ │ │ ├── send_games → true (optional)
│ │ │ ├── send_inline → true (optional)
│ │ │ ├── embed_links → true (optional)
│ │ │ ├── send_polls → true (optional)
│ │ │ ├── change_info → true (optional)
│ │ │ ├── invite_users → true (optional)
│ │ │ ├── pin_messages → true (optional)
│ │ │ ├── manage_topics → true (optional)
│ │ │ ├── send_photos → true (optional)
│ │ │ ├── send_videos → true (optional)
│ │ │ ├── send_roundvideos → true (optional)
│ │ │ ├── send_audios → true (optional)
│ │ │ ├── send_voices → true (optional)
│ │ │ ├── send_docs → true (optional)
│ │ │ ├── send_plain → true (optional)
│ │ │ ├── edit_rank → true (optional)
│ │ │ ├── send_reactions → true (optional)
│ │ │ └── until_date → int
│ │ └── rank → string (optional)
│ └── peer → Peer
│ ├── PeerUser
│ │ └── user_id → long
│ ├── PeerChat
│ │ └── chat_id → long
│ └── PeerChannel
│ └── channel_id → long
├── new_participant → ChannelParticipant (optional)
│ ├── ChannelParticipant
│ │ ├── user_id → long
│ │ ├── date → int
│ │ ├── subscription_until_date → int (optional)
│ │ └── rank → string (optional)
│ │ ├── via_request → true (optional)
│ │ ├── user_id → long
│ │ ├── inviter_id → long
│ │ ├── date → int
│ │ ├── subscription_until_date → int (optional)
│ │ └── rank → string (optional)
│ │ ├── user_id → long
│ │ ├── admin_rights → ChatAdminRights
│ │ │ └── ChatAdminRights
│ │ │ ├── change_info → true (optional)
│ │ │ ├── post_messages → true (optional)
│ │ │ ├── edit_messages → true (optional)
│ │ │ ├── delete_messages → true (optional)
│ │ │ ├── ban_users → true (optional)
│ │ │ ├── invite_users → true (optional)
│ │ │ ├── pin_messages → true (optional)
│ │ │ ├── add_admins → true (optional)
│ │ │ ├── anonymous → true (optional)
│ │ │ ├── manage_call → true (optional)
│ │ │ ├── other → true (optional)
│ │ │ ├── manage_topics → true (optional)
│ │ │ ├── post_stories → true (optional)
│ │ │ ├── edit_stories → true (optional)
│ │ │ ├── delete_stories → true (optional)
│ │ │ ├── manage_direct_messages → true (optional)
│ │ │ └── manage_ranks → true (optional)
│ │ └── rank → string (optional)
│ │ ├── can_edit → true (optional)
│ │ ├── is_self → true (optional)
│ │ ├── user_id → long
│ │ ├── inviter_id → long (optional)
│ │ ├── promoted_by → long
│ │ ├── date → int
│ │ ├── admin_rights → ChatAdminRights
│ │ │ └── ChatAdminRights
│ │ │ ├── change_info → true (optional)
│ │ │ ├── post_messages → true (optional)
│ │ │ ├── edit_messages → true (optional)
│ │ │ ├── delete_messages → true (optional)
│ │ │ ├── ban_users → true (optional)
│ │ │ ├── invite_users → true (optional)
│ │ │ ├── pin_messages → true (optional)
│ │ │ ├── add_admins → true (optional)
│ │ │ ├── anonymous → true (optional)
│ │ │ ├── manage_call → true (optional)
│ │ │ ├── other → true (optional)
│ │ │ ├── manage_topics → true (optional)
│ │ │ ├── post_stories → true (optional)
│ │ │ ├── edit_stories → true (optional)
│ │ │ ├── delete_stories → true (optional)
│ │ │ ├── manage_direct_messages → true (optional)
│ │ │ └── manage_ranks → true (optional)
│ │ └── rank → string (optional)
│ │ ├── left → true (optional)
│ │ ├── peer → Peer
│ │ │ ├── PeerUser
│ │ │ │ └── user_id → long
│ │ │ ├── PeerChat
│ │ │ │ └── chat_id → long
│ │ │ └── PeerChannel
│ │ │ └── channel_id → long
│ │ ├── kicked_by → long
│ │ ├── date → int
│ │ ├── banned_rights → ChatBannedRights
│ │ │ └── ChatBannedRights
│ │ │ ├── view_messages → true (optional)
│ │ │ ├── send_messages → true (optional)
│ │ │ ├── send_media → true (optional)
│ │ │ ├── send_stickers → true (optional)
│ │ │ ├── send_gifs → true (optional)
│ │ │ ├── send_games → true (optional)
│ │ │ ├── send_inline → true (optional)
│ │ │ ├── embed_links → true (optional)
│ │ │ ├── send_polls → true (optional)
│ │ │ ├── change_info → true (optional)
│ │ │ ├── invite_users → true (optional)
│ │ │ ├── pin_messages → true (optional)
│ │ │ ├── manage_topics → true (optional)
│ │ │ ├── send_photos → true (optional)
│ │ │ ├── send_videos → true (optional)
│ │ │ ├── send_roundvideos → true (optional)
│ │ │ ├── send_audios → true (optional)
│ │ │ ├── send_voices → true (optional)
│ │ │ ├── send_docs → true (optional)
│ │ │ ├── send_plain → true (optional)
│ │ │ ├── edit_rank → true (optional)
│ │ │ ├── send_reactions → true (optional)
│ │ │ └── until_date → int
│ │ └── rank → string (optional)
│ └── peer → Peer
│ ├── PeerUser
│ │ └── user_id → long
│ ├── PeerChat
│ │ └── chat_id → long
│ └── PeerChannel
│ └── channel_id → long
├── invite → ExportedChatInvite (optional)
│ ├── ChatInviteExported
│ │ ├── revoked → true (optional)
│ │ ├── permanent → true (optional)
│ │ ├── request_needed → true (optional)
│ │ ├── link → string
│ │ ├── admin_id → long
│ │ ├── date → int
│ │ ├── start_date → int (optional)
│ │ ├── expire_date → int (optional)
│ │ ├── usage_limit → int (optional)
│ │ ├── usage → int (optional)
│ │ ├── requested → int (optional)
│ │ ├── subscription_expired → int (optional)
│ │ ├── title → string (optional)
│ │ └── subscription_pricing → StarsSubscriptionPricing (optional)
│ │ └── StarsSubscriptionPricing
│ │ ├── period → int
│ │ └── amount → long
└── qts → int

Example

UpdateChannelParticipant(
    channel_id=0,
    date=0,
    actor_id=0,
    user_id=0,
    qts=0,
)