libtd-ktx / kotlinx.telegram.extensions / SupergroupKtx / reportSpam
reportSpam
open suspend fun
Supergroup
.reportSpam(userId:
Int
, messageIds:
LongArray
?):
Unit
Suspend function, which reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup.
Parameters
userId
- User identifier.
messageIds
- Identifiers of messages sent in the supergroup by the user. This list must be
non-empty.