UpdateChatParticipant

class pyrogram.raw.types.UpdateChatParticipant

A user has joined or left a specific chat

Constructor of Update.

Details:
  • Layer: 223

  • ID: D087663A

Parameters:
  • chat_id (int 64-bit) – Chat ID

  • date (int 32-bit) – When did this event occur

  • 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.

  • prev_participant (ChatParticipant, optional) – Previous participant info (empty if this participant just joined)

  • new_participant (ChatParticipant, optional) – New participant info (empty if this participant just left)

  • invite (ExportedChatInvite, optional) – The invite that was used to join the group

TL Schema

updateChatParticipant#d087663a
flags:#
chat_id:long
date:int
actor_id:long
user_id:long
prev_participant:flags.0?ChatParticipant
new_participant:flags.1?ChatParticipant
invite:flags.2?ExportedChatInvite
qts:int

= Update

Parameter Tree

UpdateChatParticipant
├── chat_idlong
├── dateint
├── actor_idlong
├── user_idlong
├── prev_participantChatParticipant (optional)
│ ├── ChatParticipant
│ │ ├── user_idlong
│ │ ├── inviter_idlong
│ │ ├── dateint
│ │ └── rankstring (optional)
│ │ ├── user_idlong
│ │ └── rankstring (optional)
│ └── ChatParticipantAdmin
│ ├── user_idlong
│ ├── inviter_idlong
│ ├── dateint
│ └── rankstring (optional)
├── new_participantChatParticipant (optional)
│ ├── ChatParticipant
│ │ ├── user_idlong
│ │ ├── inviter_idlong
│ │ ├── dateint
│ │ └── rankstring (optional)
│ │ ├── user_idlong
│ │ └── rankstring (optional)
│ └── ChatParticipantAdmin
│ ├── user_idlong
│ ├── inviter_idlong
│ ├── dateint
│ └── rankstring (optional)
├── 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

UpdateChatParticipant(
    chat_id=0,
    date=0,
    actor_id=0,
    user_id=0,
    qts=0,
)