SendEphemeralMessage class final

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

Returns Message.

Inheritance

Constructors

SendEphemeralMessage({required int chatId, MessageTopic? topicId, required int receiverUserId, required int callbackQueryId, required bool replaceCallbackQueryMessage, InputMessageReplyTo? replyTo, required bool protectContent, required int sendingId, required bool onlyPreview, ReplyMarkup? replyMarkup, 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
const

Properties

callbackQueryId → int
Identifier of the callback query which triggered the message; for bots only
final
canBeCalledSynchronously → bool
Whether TDLib documents this request as callable through td_execute.
no setterinherited
chatId → int
Target chat
final
hashCode → int
The hash code for this object.
no setterinherited
inputMessageContent → InputMessageContent
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
final
onlyPreview → bool
Pass true to get a fake message instead of actually sending it
final
protectContent → bool
Pass true if the content of the message must be protected from forwarding and saving; for bots only
final
receiverUserId → int
Identifier of the user who will receive the message
final
replaceCallbackQueryMessage → bool
Pass true if the ephemeral message must replace the message from which the callback query originated; for bots only
final
replyMarkup → ReplyMarkup?
Markup for replying to the message; pass null if none; for bots only
final
replyTo → InputMessageReplyTo?
Information about the message to be replied; pass null if none. The message can be an incoming ephemeral message
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sendingId → int
Non-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match sent messages and corresponding updateNewMessage updates
final
topicId → MessageTopic?
Topic in which the message will be sent; pass null if none
final

Methods

copyWith({int? chatId, MessageTopic? topicId()?, int? receiverUserId, int? callbackQueryId, bool? replaceCallbackQueryMessage, InputMessageReplyTo? replyTo()?, bool? protectContent, int? sendingId, bool? onlyPreview, ReplyMarkup? replyMarkup()?, InputMessageContent? inputMessageContent}) → SendEphemeralMessage
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
getConstructor() → String
TDLib function name, e.g. getMe.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson([dynamic extra]) → Map<String, dynamic>
Converts this request to TDLib JSON, tagged with extra if given.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

CONSTRUCTOR → const String
TDLib type name.