reportSupergroupSpam - libtd-ktx

Kotlin Coroutines extensions for Telegram API TDLib (Telegram Database library)


libtd-ktx / kotlinx.telegram.coroutines / reportSupergroupSpam

reportSupergroupSpam

suspend fun TelegramFlow.reportSupergroupSpam(supergroupId: Int, 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

supergroupId - Supergroup identifier.

userId - User identifier.

messageIds - Identifiers of messages sent in the supergroup by the user. This list must be non-empty.