Skip to content

delete chat messages from user

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

libtd-ktx / kotlinx.telegram.coroutines / deleteChatMessagesFromUser

deleteChatMessagesFromUser

suspend fun TelegramFlow.deleteChatMessagesFromUser(chatId: Long, userId: Int): Unit

Suspend function, which deletes all messages sent by the specified user to a chat. Supported only for supergroups; requires canDeleteMessages administrator privileges.

Parameters

chatId - Chat identifier.

userId - User identifier.

Clone this wiki locally