Methods

getRecentActions

Get the recent actions of a channel or a supergroup. USER-ONLY

Parameters

chatId: ID

The identifier of the chat.

admins?: ID[]

A list of admin user identifiers. If specified, only events triggered by them will be returned.

limit?: number

The maximum number of results to return.

offsetId?: string

Offset event ID from a previous result.

isChatSettings?: boolean

Whether to return recent actions related to chat settings.

isDelete?: boolean

Whether to return recent actions related to message deletion.

isEdit?: boolean

Whether to return recent actions related to message edits.

isForum?: boolean

Whether to return recent actions related to forum changes.

isInvite?: boolean

Whether to return recent actions related to invitations.

isJoin?: boolean

Whether to return recent actions related to joins.

isLeave?: boolean

Whether to return recent actions related to leaves.

isMemberTag?: boolean

Whether to return recent actions related to member tags.

isNewMessage?: boolean

Whether to return recent actions related to new messages.

isPin?: boolean

Whether to return recent actions related to pinned messages.

isRestrict?: boolean

Whether to return recent actions related to member rights.

isVideoChat?: boolean

Whether to return recent actions related to video chats.

Result

Syntax

// Required parameters only.
await client.getRecentActions(chatId);

// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.getRecentActions(chatId, {
    admins,
    limit,
    offsetId,
    isChatSettings,
    isDelete,
    isEdit,
    isForum,
    isInvite,
    isJoin,
    isLeave,
    isMemberTag,
    isNewMessage,
    isPin,
    isRestrict,
    isVideoChat,
});