sendEphemeralMessage¶
Sends an ephemeral message which will be received only by one bot in a chat. Currently, only ephemeral bot commands and replies to bot ephemeral messages can be sent using the method. The message is persistent across application restarts only if the message database is used. Returns the sent message
sendEphemeralMessage(
chat_id: int53,
topic_id: MessageTopic,
receiver_user_id: int53,
callback_query_id: int64,
replace_callback_query_message: Bool,
reply_to: InputMessageReplyTo,
protect_content: Bool,
sending_id: int32,
only_preview: Bool,
reply_markup: ReplyMarkup,
input_message_content: InputMessageContent
) → Message
chat_id¶
int53
Target chat
topic_id¶
Topic in which the message will be sent; pass null if none
receiver_user_id¶
int53
Identifier of the user who will receive the message
callback_query_id¶
int64
Identifier of the callback query which triggered the message; for bots only
replace_callback_query_message¶
Bool
Pass true if the ephemeral message must replace the message from which the callback query originated; for bots only
reply_to¶
Information about the message to be replied; pass null if none. The message can be an incoming ephemeral message
protect_content¶
Bool
Pass true if the content of the message must be protected from forwarding and saving; for bots only
sending_id¶
int32
Non-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match sent messages and corresponding updateNewMessage updates
only_preview¶
Bool
Pass true to get a fake message instead of actually sending them
reply_markup¶
Markup for replying to the message; pass null if none; for bots only
input_message_content¶
The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageRichMessage, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote, inputMessageLocation, inputMessageVenue, inputMessageContact