Link Search Menu Expand Document

Method: channels.getAdminLog

Back to methods index

Get the admin log of a channel/supergroup


channelUsername, chat ID, Update, Message or InputChannelChannelOptional
qstringSearch query, can be emptyYes
events_filterChannelAdminLogEventsFilterEvent filterOptional
adminsArray of Username, chat ID, Update, Message or InputUserOnly show events from these adminsOptional
max_idlongMaximum ID of message to return (see pagination)Yes
min_idlongMinimum ID of message to return (see pagination)Yes
limitintMaximum number of results to return, see paginationOptional

Return type: channels.AdminLogResults

Can bots use this method: NO

MadelineProto Example (now async for huge speed and parallelism!):

if (!file_exists('madeline.php')) {
    copy('', 'madeline.php');
include 'madeline.php';

$MadelineProto = new \danog\MadelineProto\API('session.madeline');

$channels_AdminLogResults = $MadelineProto->channels->getAdminLog(channel: InputChannel, q: 'string', events_filter: ChannelAdminLogEventsFilter, admins: [InputUser, InputUser], max_id: long, min_id: long, limit: int, );