peyk.platforms.telegram.methods.delete_messages

async peyk.platforms.telegram.methods.delete_messages(self, chat_id: int | str, message_ids: Sequence[int]) bool[source]

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.

Parameters:
  • chat_id – Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username

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

Returns:

Result returned by Telegram on successful execution.

Return type:

bool