Skip to content
Alexey Kravtsov edited this page May 19, 2020 · 1 revision

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.

Clone this wiki locally