get_ephemeral_callback_answer()

async Client.get_ephemeral_callback_answer()

Get callback answer from an ephemeral message inline button.

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

  • message_id (int) – Identifier of the ephemeral message.

  • data (bytes | str, optional) – Callback data of the pressed button.

Returns:

BotCallbackAnswer – The bot callback answer.

Example

answer = await app.get_ephemeral_callback_answer(chat_id, message_id, b"data")