getRecentActions
Get the recent actions of a channel or a supergroup. USER-ONLY
Parameters
The identifier of the chat.
A list of admin user identifiers. If specified, only events triggered by them will be returned.
The maximum number of results to return.
Offset event ID from a previous result.
Whether to return recent actions related to chat settings.
Whether to return recent actions related to message deletion.
Whether to return recent actions related to message edits.
Whether to return recent actions related to forum changes.
Whether to return recent actions related to invitations.
Whether to return recent actions related to joins.
Whether to return recent actions related to leaves.
Whether to return recent actions related to member tags.
Whether to return recent actions related to new messages.
Whether to return recent actions related to pinned messages.
Whether to return recent actions related to member rights.
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,
});