Skip to content

report spam

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

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.

Clone this wiki locally