libtd-ktx / kotlinx.telegram.coroutines / reportChat
reportChat
suspend fun
TelegramFlow
.reportChat(chatId:
Long
, 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
chatId
- Chat identifier.
reason
- The reason for reporting the chat.
messageIds
- Identifiers of reported messages, if any.