Link Search Menu Expand Document

Constructor: channelAdminLogEventsFilter

Back to constructors index

Filter only certain admin log events

Attributes:

NameTypeRequiredDescription
joinBoolOptionalJoin events, including joins using invite links and join requests.
leaveBoolOptionalLeave events
inviteBoolOptionalInvite events
banBoolOptionalBan events
unbanBoolOptionalUnban events
kickBoolOptionalKick events
unkickBoolOptionalUnkick events
promoteBoolOptionalAdmin promotion events
demoteBoolOptionalAdmin demotion events
infoBoolOptionalInfo change events (when about, linked chat, location, photo, stickerset, title or username, slowmode, history TTL settings of a channel gets modified)
settingsBoolOptionalSettings change events (invites, hidden prehistory, signatures, default banned rights, forum toggle events)
pinnedBoolOptionalMessage pin events
editBoolOptionalMessage edit events
deleteBoolOptionalMessage deletion events
group_callBoolOptionalGroup call events
invitesBoolOptionalInvite events
sendBoolOptionalA message was posted in a channel
forumsBoolOptionalForum-related events
sub_extendBoolOptional

Type: ChannelAdminLogEventsFilter

Example:

$channelAdminLogEventsFilter = ['_' => 'channelAdminLogEventsFilter', 'join' => Bool, 'leave' => Bool, 'invite' => Bool, 'ban' => Bool, 'unban' => Bool, 'kick' => Bool, 'unkick' => Bool, 'promote' => Bool, 'demote' => Bool, 'info' => Bool, 'settings' => Bool, 'pinned' => Bool, 'edit' => Bool, 'delete' => Bool, 'group_call' => Bool, 'invites' => Bool, 'send' => Bool, 'forums' => Bool, 'sub_extend' => Bool];