EphemeralMessageParameters

class pyrogram.types.EphemeralMessageParameters[source]

Describes an ephemeral message to send in place of an ordinary one.

Pass it to any send method to send that message as an ephemeral message — visible only to one person and absent from the chat’s history — rather than as a normal one.

Parameters:
  • receiver_user_id (int | str) – Unique identifier (int) or username (str) of the user who will receive the message. There is no guarantee they will, especially if they are offline.

  • callback_query_id (str, optional) – Identifier of the callback query which triggered the message, if any.

  • replace_callback_query_message (bool, optional) – Pass True if the ephemeral message must be shown in place of the message the callback query came from. Must be False for callback queries that came from an ephemeral message, which are edited with the edit_ephemeral_message_text() family instead.