SendEphemeralMessage constructor

const SendEphemeralMessage({
  1. required int chatId,
  2. MessageTopic? topicId,
  3. required int receiverUserId,
  4. required int callbackQueryId,
  5. required bool replaceCallbackQueryMessage,
  6. InputMessageReplyTo? replyTo,
  7. required bool protectContent,
  8. required int sendingId,
  9. required bool onlyPreview,
  10. ReplyMarkup? replyMarkup,
  11. required InputMessageContent inputMessageContent,
})

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

Implementation

const SendEphemeralMessage({
  required this.chatId,
  this.topicId,
  required this.receiverUserId,
  required this.callbackQueryId,
  required this.replaceCallbackQueryMessage,
  this.replyTo,
  required this.protectContent,
  required this.sendingId,
  required this.onlyPreview,
  this.replyMarkup,
  required this.inputMessageContent,
});