get_message_edit_data()

async Client.get_message_edit_data()

Check if a message can be edited and get the current edit data.

Usable by Users Bots
Parameters:
  • chat_id (int | str) – Unique identifier (int) or username (str) of the target chat.

  • message_id (int) – The message ID to check.

Returns:

MessageEditData – The message edit data.

Example

data = await app.get_message_edit_data(chat_id, message_id)