peyk.platforms.telegram.methods.delete_ephemeral_message¶
- async peyk.platforms.telegram.methods.delete_ephemeral_message(self, chat_id: int | str, receiver_user_id: int | None = None, ephemeral_message_id: int | None = None) bool¶
Use this method to delete an ephemeral message. Note that it is not guaranteed that the user will receive the message deletion event, especially if they are offline. Returns True on success.
- Parameters:
chat_id – Unique identifier for the target chat or username of the target supergroup in the format @username
receiver_user_id – Identifier of the user who received the message
ephemeral_message_id – Identifier of the ephemeral message to delete
- Returns:
Result returned by Telegram on successful execution.
- Return type:
bool