channels.getAdminLog #

Get the admin log of a channel/supergroup

Layer 223

channels.adminLogResults#ed8af74d events:Vector<ChannelAdminLogEvent> chats:Vector<Chat> users:Vector<User> = channels.AdminLogResults;
---functions---
channels.getAdminLog#33ddf480 flags:# channel:InputChannel q:string events_filter:flags.0?ChannelAdminLogEventsFilter admins:flags.1?Vector<InputUser> max_id:long min_id:long limit:int = channels.AdminLogResults;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
channelInputChannelChannel
qstringSearch query, can be empty
events_filterflags.0?ChannelAdminLogEventsFilterEvent filter
adminsflags.1?Vector<InputUser>Only show events from these admins
max_idlongMaximum ID of message to return (see pagination)
min_idlongMinimum ID of message to return (see pagination)
limitintMaximum number of results to return, see pagination

Result #

channels.AdminLogResults

Only users can use this method #

Possible errors #

CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid.
406CHANNEL_PRIVATEYou haven't joined this channel/supergroup.
403CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.
403CHAT_WRITE_FORBIDDENYou can't write in this chat.
400MSG_ID_INVALIDInvalid message ID provided.

Pagination in the API #

How to fetch results from large lists of objects.

Channels, supergroups, gigagroups and basic groups #

How to handle channels, supergroups, gigagroups, basic groups, and what's the difference between them.