deleteMessages

inline fun deleteMessages(messageIds: List<Long>): DeleteMessagesAction

Use this method to delete multiple messages simultaneously. If some of the specified messages can't be found, they are skipped. Returns True on success.

Api reference

Parameters

chatId

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

messageIds

A JSON-serialized list of 1-100 identifiers of messages to delete. See deleteMessage for limitations on which messages can be deleted


inline fun deleteMessages(vararg messageId: Long): DeleteMessagesAction