getChatEventLog - libtd-ktx

Kotlin Coroutines extensions for Telegram API TDLib (Telegram Database library)


libtd-ktx / kotlinx.telegram.coroutines / getChatEventLog

getChatEventLog

suspend fun TelegramFlow.getChatEventLog(chatId: Long, query: String?, fromEventId: Long, limit: Int, filters: ChatEventLogFilters?, userIds: IntArray?): ChatEvents

Suspend function, which returns a list of service actions taken by chat members and administrators in the last 48 hours. Available only for supergroups and channels. Requires administrator rights. Returns results in reverse chronological order (i. e., in order of decreasing eventId).

Parameters

chatId - Chat identifier.

query - Search query by which to filter events.

fromEventId - Identifier of an event from which to return results. Use 0 to get results from the latest events.

limit - The maximum number of events to return; up to 100.

filters - The types of events to return. By default, all types will be returned.

userIds - User identifiers by which to filter events. By default, events relating to all users will be returned.

Return ChatEvents Contains a list of chat events.