MessageSendOptions class final

Options to be used when a message is sent

Inheritance

Constructors

MessageSendOptions({InputSuggestedPostInfo? suggestedPostInfo, required bool disableNotification, required bool fromBackground, required bool protectContent, required bool allowPaidBroadcast, required int paidMessageStarCount, required bool updateOrderOfInstalledStickerSets, MessageSchedulingState? schedulingState, required int effectId, required int sendingId, required bool onlyPreview})
Options to be used when a message is sent
const
MessageSendOptions.fromJson(Map<String, dynamic> json)
Parses a MessageSendOptions from TDLib JSON.
factory

Properties

allowPaidBroadcast → bool
Pass true to allow the message to ignore regular broadcast limits for a small fee; for bots only
final
clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
disableNotification → bool
Pass true to disable notification for the message
final
effectId → int
Identifier of the effect to apply to the message; pass 0 if none; applicable only to sendMessage, sendMessageAlbum in private chats and forwardMessages with one message to private chats
final
extra → dynamic
"@extra" of the request this object answers; null for updates.
no setterinherited
fromBackground → bool
Pass true if the message is sent from the background
final
hashCode → int
The hash code for this object.
no setterinherited
onlyPreview → bool
Pass true to get a fake message instead of actually sending them
final
paidMessageStarCount → int
The number of Telegram Stars the user agreed to pay to send the messages
final
protectContent → bool
Pass true if the content of the message must be protected from forwarding and saving; for bots only
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
schedulingState → MessageSchedulingState?
Message scheduling state; pass null to send message immediately. Messages sent to a secret chat, to a chat with paid messages, to a channel direct messages chat, live location messages and self-destructing messages can't be scheduled
final
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
suggestedPostInfo → InputSuggestedPostInfo?
Information about the suggested post; pass null if none. For messages to channel direct messages chat only. Applicable only to sendMessage and addOffer
final
updateOrderOfInstalledStickerSets → bool
Pass true if the user has explicitly chosen a sticker or a custom emoji from an installed sticker set; applicable only to sendMessage and sendMessageAlbum
final

Methods

copyWith({InputSuggestedPostInfo? suggestedPostInfo()?, bool? disableNotification, bool? fromBackground, bool? protectContent, bool? allowPaidBroadcast, int? paidMessageStarCount, bool? updateOrderOfInstalledStickerSets, MessageSchedulingState? schedulingState()?, int? effectId, int? sendingId, bool? onlyPreview}) → MessageSendOptions
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 type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
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.