UpdateChatParticipant

class pyrogram.raw.types.UpdateChatParticipant

A user has joined or left a specific chat

Constructor of Update.

Details:
  • Layer: 227

  • 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_id → long
├── date → int
├── actor_id → long
├── user_id → long
├── prev_participant → ChatParticipant (optional)
│ ├── ChatParticipant
│ │ ├── user_id → long
│ │ ├── inviter_id → long
│ │ ├── date → int
│ │ └── rank → string (optional)
│ │ ├── user_id → long
│ │ └── rank → string (optional)
│ └── ChatParticipantAdmin
│ ├── user_id → long
│ ├── inviter_id → long
│ ├── date → int
│ └── rank → string (optional)
├── new_participant → ChatParticipant (optional)
│ ├── ChatParticipant
│ │ ├── user_id → long
│ │ ├── inviter_id → long
│ │ ├── date → int
│ │ └── rank → string (optional)
│ │ ├── user_id → long
│ │ └── rank → string (optional)
│ └── ChatParticipantAdmin
│ ├── user_id → long
│ ├── inviter_id → long
│ ├── date → int
│ └── rank → string (optional)
├── 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

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