EphemeralMessageParameters

Raw MD
Describes the parameters of an ephemeral message sent back to a specific user without cluttering the chat for other members.

Describes the parameters of an ephemeral message sent back to a specific user. Other members of the group or supergroup will not see the message.

FieldTypeRequiredDescription
receiver_user_idIntegerAlwaysIdentifier of the user who will receive the message. It is not guaranteed that the user will receive the message, especially if they are offline. See here for more details.
callback_query_idStringOptionalIdentifier of the callback query which triggered the message, if any
replace_callback_query_messageBooleanOptionalPass *True* if the ephemeral message must be shown in place of the original message. Must be *False* for callback queries from ephemeral messages, which must be edited using regular *editEphemeralMessage...* methods.
Botlify Cloud Runtime
Credentials are auto-injected in .env — always load them with getenv(): BOT_TOKEN, ADMIN_CHAT_ID, BOT_USERNAME. Main database: database.db (SQLite, WAL mode). Runtime errors: error.log. Quick test: send to $ADMIN_CHAT_ID. Full details: Runtime Reference.