-
Notifications
You must be signed in to change notification settings - Fork 11
report chat
Alexey Kravtsov edited this page May 19, 2020
·
1 revision
libtd-ktx / kotlinx.telegram.coroutines / 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.
chatId
- Chat identifier.
reason
- The reason for reporting the chat.
messageIds
- Identifiers of reported messages, if any.