libtd-ktx / kotlinx.telegram.extensions / UserKtx / reportSupergroupSpam
reportSupergroupSpam
open suspend fun User.reportSupergroupSpam(supergroupId: 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
supergroupId - Supergroup identifier.
messageIds - Identifiers of messages sent in the supergroup by the user. This list must be
non-empty.