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: 223

  • 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_chatlisttrue (optional)
├── channel_idlong
├── dateint
├── actor_idlong
├── user_idlong
├── prev_participantChannelParticipant (optional)
│ ├── ChannelParticipant
│ │ ├── user_idlong
│ │ ├── dateint
│ │ ├── subscription_until_dateint (optional)
│ │ └── rankstring (optional)
│ │ ├── via_requesttrue (optional)
│ │ ├── user_idlong
│ │ ├── inviter_idlong
│ │ ├── dateint
│ │ ├── subscription_until_dateint (optional)
│ │ └── rankstring (optional)
│ │ ├── user_idlong
│ │ ├── admin_rightsChatAdminRights
│ │ │ └── ChatAdminRights
│ │ │ ├── change_infotrue (optional)
│ │ │ ├── post_messagestrue (optional)
│ │ │ ├── edit_messagestrue (optional)
│ │ │ ├── delete_messagestrue (optional)
│ │ │ ├── ban_userstrue (optional)
│ │ │ ├── invite_userstrue (optional)
│ │ │ ├── pin_messagestrue (optional)
│ │ │ ├── add_adminstrue (optional)
│ │ │ ├── anonymoustrue (optional)
│ │ │ ├── manage_calltrue (optional)
│ │ │ ├── othertrue (optional)
│ │ │ ├── manage_topicstrue (optional)
│ │ │ ├── post_storiestrue (optional)
│ │ │ ├── edit_storiestrue (optional)
│ │ │ ├── delete_storiestrue (optional)
│ │ │ ├── manage_direct_messagestrue (optional)
│ │ │ └── manage_rankstrue (optional)
│ │ └── rankstring (optional)
│ │ ├── can_edittrue (optional)
│ │ ├── is_selftrue (optional)
│ │ ├── user_idlong
│ │ ├── inviter_idlong (optional)
│ │ ├── promoted_bylong
│ │ ├── dateint
│ │ ├── admin_rightsChatAdminRights
│ │ │ └── ChatAdminRights
│ │ │ ├── change_infotrue (optional)
│ │ │ ├── post_messagestrue (optional)
│ │ │ ├── edit_messagestrue (optional)
│ │ │ ├── delete_messagestrue (optional)
│ │ │ ├── ban_userstrue (optional)
│ │ │ ├── invite_userstrue (optional)
│ │ │ ├── pin_messagestrue (optional)
│ │ │ ├── add_adminstrue (optional)
│ │ │ ├── anonymoustrue (optional)
│ │ │ ├── manage_calltrue (optional)
│ │ │ ├── othertrue (optional)
│ │ │ ├── manage_topicstrue (optional)
│ │ │ ├── post_storiestrue (optional)
│ │ │ ├── edit_storiestrue (optional)
│ │ │ ├── delete_storiestrue (optional)
│ │ │ ├── manage_direct_messagestrue (optional)
│ │ │ └── manage_rankstrue (optional)
│ │ └── rankstring (optional)
│ │ ├── lefttrue (optional)
│ │ ├── peerPeer
│ │ │ ├── PeerUser
│ │ │ │ └── user_idlong
│ │ │ ├── PeerChat
│ │ │ │ └── chat_idlong
│ │ │ └── PeerChannel
│ │ │ └── channel_idlong
│ │ ├── kicked_bylong
│ │ ├── dateint
│ │ ├── banned_rightsChatBannedRights
│ │ │ └── ChatBannedRights
│ │ │ ├── view_messagestrue (optional)
│ │ │ ├── send_messagestrue (optional)
│ │ │ ├── send_mediatrue (optional)
│ │ │ ├── send_stickerstrue (optional)
│ │ │ ├── send_gifstrue (optional)
│ │ │ ├── send_gamestrue (optional)
│ │ │ ├── send_inlinetrue (optional)
│ │ │ ├── embed_linkstrue (optional)
│ │ │ ├── send_pollstrue (optional)
│ │ │ ├── change_infotrue (optional)
│ │ │ ├── invite_userstrue (optional)
│ │ │ ├── pin_messagestrue (optional)
│ │ │ ├── manage_topicstrue (optional)
│ │ │ ├── send_photostrue (optional)
│ │ │ ├── send_videostrue (optional)
│ │ │ ├── send_roundvideostrue (optional)
│ │ │ ├── send_audiostrue (optional)
│ │ │ ├── send_voicestrue (optional)
│ │ │ ├── send_docstrue (optional)
│ │ │ ├── send_plaintrue (optional)
│ │ │ ├── edit_ranktrue (optional)
│ │ │ └── until_dateint
│ │ └── rankstring (optional)
│ └── peerPeer
│ ├── PeerUser
│ │ └── user_idlong
│ ├── PeerChat
│ │ └── chat_idlong
│ └── PeerChannel
│ └── channel_idlong
├── new_participantChannelParticipant (optional)
│ ├── ChannelParticipant
│ │ ├── user_idlong
│ │ ├── dateint
│ │ ├── subscription_until_dateint (optional)
│ │ └── rankstring (optional)
│ │ ├── via_requesttrue (optional)
│ │ ├── user_idlong
│ │ ├── inviter_idlong
│ │ ├── dateint
│ │ ├── subscription_until_dateint (optional)
│ │ └── rankstring (optional)
│ │ ├── user_idlong
│ │ ├── admin_rightsChatAdminRights
│ │ │ └── ChatAdminRights
│ │ │ ├── change_infotrue (optional)
│ │ │ ├── post_messagestrue (optional)
│ │ │ ├── edit_messagestrue (optional)
│ │ │ ├── delete_messagestrue (optional)
│ │ │ ├── ban_userstrue (optional)
│ │ │ ├── invite_userstrue (optional)
│ │ │ ├── pin_messagestrue (optional)
│ │ │ ├── add_adminstrue (optional)
│ │ │ ├── anonymoustrue (optional)
│ │ │ ├── manage_calltrue (optional)
│ │ │ ├── othertrue (optional)
│ │ │ ├── manage_topicstrue (optional)
│ │ │ ├── post_storiestrue (optional)
│ │ │ ├── edit_storiestrue (optional)
│ │ │ ├── delete_storiestrue (optional)
│ │ │ ├── manage_direct_messagestrue (optional)
│ │ │ └── manage_rankstrue (optional)
│ │ └── rankstring (optional)
│ │ ├── can_edittrue (optional)
│ │ ├── is_selftrue (optional)
│ │ ├── user_idlong
│ │ ├── inviter_idlong (optional)
│ │ ├── promoted_bylong
│ │ ├── dateint
│ │ ├── admin_rightsChatAdminRights
│ │ │ └── ChatAdminRights
│ │ │ ├── change_infotrue (optional)
│ │ │ ├── post_messagestrue (optional)
│ │ │ ├── edit_messagestrue (optional)
│ │ │ ├── delete_messagestrue (optional)
│ │ │ ├── ban_userstrue (optional)
│ │ │ ├── invite_userstrue (optional)
│ │ │ ├── pin_messagestrue (optional)
│ │ │ ├── add_adminstrue (optional)
│ │ │ ├── anonymoustrue (optional)
│ │ │ ├── manage_calltrue (optional)
│ │ │ ├── othertrue (optional)
│ │ │ ├── manage_topicstrue (optional)
│ │ │ ├── post_storiestrue (optional)
│ │ │ ├── edit_storiestrue (optional)
│ │ │ ├── delete_storiestrue (optional)
│ │ │ ├── manage_direct_messagestrue (optional)
│ │ │ └── manage_rankstrue (optional)
│ │ └── rankstring (optional)
│ │ ├── lefttrue (optional)
│ │ ├── peerPeer
│ │ │ ├── PeerUser
│ │ │ │ └── user_idlong
│ │ │ ├── PeerChat
│ │ │ │ └── chat_idlong
│ │ │ └── PeerChannel
│ │ │ └── channel_idlong
│ │ ├── kicked_bylong
│ │ ├── dateint
│ │ ├── banned_rightsChatBannedRights
│ │ │ └── ChatBannedRights
│ │ │ ├── view_messagestrue (optional)
│ │ │ ├── send_messagestrue (optional)
│ │ │ ├── send_mediatrue (optional)
│ │ │ ├── send_stickerstrue (optional)
│ │ │ ├── send_gifstrue (optional)
│ │ │ ├── send_gamestrue (optional)
│ │ │ ├── send_inlinetrue (optional)
│ │ │ ├── embed_linkstrue (optional)
│ │ │ ├── send_pollstrue (optional)
│ │ │ ├── change_infotrue (optional)
│ │ │ ├── invite_userstrue (optional)
│ │ │ ├── pin_messagestrue (optional)
│ │ │ ├── manage_topicstrue (optional)
│ │ │ ├── send_photostrue (optional)
│ │ │ ├── send_videostrue (optional)
│ │ │ ├── send_roundvideostrue (optional)
│ │ │ ├── send_audiostrue (optional)
│ │ │ ├── send_voicestrue (optional)
│ │ │ ├── send_docstrue (optional)
│ │ │ ├── send_plaintrue (optional)
│ │ │ ├── edit_ranktrue (optional)
│ │ │ └── until_dateint
│ │ └── rankstring (optional)
│ └── peerPeer
│ ├── PeerUser
│ │ └── user_idlong
│ ├── PeerChat
│ │ └── chat_idlong
│ └── PeerChannel
│ └── channel_idlong
├── inviteExportedChatInvite (optional)
│ ├── ChatInviteExported
│ │ ├── revokedtrue (optional)
│ │ ├── permanenttrue (optional)
│ │ ├── request_neededtrue (optional)
│ │ ├── linkstring
│ │ ├── admin_idlong
│ │ ├── dateint
│ │ ├── start_dateint (optional)
│ │ ├── expire_dateint (optional)
│ │ ├── usage_limitint (optional)
│ │ ├── usageint (optional)
│ │ ├── requestedint (optional)
│ │ ├── subscription_expiredint (optional)
│ │ ├── titlestring (optional)
│ │ └── subscription_pricingStarsSubscriptionPricing (optional)
│ │ └── StarsSubscriptionPricing
│ │ ├── periodint
│ │ └── amountlong
└── qtsint

Example

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