ChatKtx.report - libtd-ktx

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


libtd-ktx / kotlinx.telegram.extensions / ChatKtx / report

report

open suspend fun Chat.report(reason: ChatReportReason?, messageIds: LongArray?): Unit

Suspend function, which reports a chat to the Telegram moderators. Supported only for supergroups, channels, or private chats with bots, since other chats can’t be checked by moderators, or when the report is done from the chat action bar.

Parameters

reason - The reason for reporting the chat.

messageIds - Identifiers of reported messages, if any.