import { tl } from '../../../tl/index.js'; import { ITelegramClient } from '../../client.types.js'; import { InputPeerLike, ChatEvent } from '../../types/index.js'; import { InputChatEventFilters } from '../../types/peers/chat-event/filters.js'; /** * Get chat event log ("Recent actions" in official clients). * * Only available for supergroups and channels, and * requires (any) administrator rights. * * Results are returned in reverse chronological * order (i.e. newest first) and event IDs are * in direct chronological order (i.e. newer * events have bigger event ID) * * @param params */ export declare function getChatEventLog(client: ITelegramClient, chatId: InputPeerLike, params?: { /** * Search query */ query?: string; /** * Minimum event ID to return */ minId?: tl.Long; /** * Maximum event ID to return, * can be used as a base offset */ maxId?: tl.Long; /** * List of users whose actions to return */ users?: InputPeerLike[]; /** * Event filters. Can be a TL object, or one or more * action types. * * Note that some filters are grouped in TL * (i.e. `info=true` will return `title_changed`, * `username_changed` and many more), * and when passing one or more action types, * they will be filtered locally. */ filters?: InputChatEventFilters; /** * Limit the number of events returned. * * > Note: when using filters, there will likely be * > less events returned than specified here. * > This limit is only used to limit the number of * > events to fetch from the server. * > * > If you need to limit the number of events * > returned, use {@link iterChatEventLog} instead. * * @default 100 */ limit?: number; }): Promise;