MadelineProtoDocs/docs/API_docs/constructors/updateChatParticipant.md
2024-05-01 14:53:46 +02:00

1.7 KiB

title description nav_exclude image
updateChatParticipant A user has joined or left a specific chat true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: updateChatParticipant

Back to constructors index

A user has joined or left a specific chat

Attributes:

Name Type Required Description
chat_id long Yes Chat ID
date int Yes When did this event occur
actor_id long Yes User that triggered the change (inviter, admin that kicked the user, or the even the user_id itself)
user_id long Yes User that was affected by the change
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
qts int Yes New qts value, see updates » for more info.

Type: Update

Example:

$updateChatParticipant = ['_' => 'updateChatParticipant', 'chat_id' => long, 'date' => int, 'actor_id' => long, 'user_id' => long, 'prev_participant' => ChatParticipant, 'new_participant' => ChatParticipant, 'invite' => ExportedChatInvite, 'qts' => int];