MessageSendOptions class
Options to be used when a message is sent
Constructors
- MessageSendOptions({String? extra, int? client_id, Bool? disable_notification, Bool? from_background, Bool? protect_content, Bool? update_order_of_installed_sticker_sets, MessageSchedulingState? scheduling_state})
-
MessageSendOptions.fromMap(Map<
String, dynamic> map)
Properties
- client_id ↔ int?
-
TDLib client id; maps to the field @client_id.
getter/setter pairinherited
- disable_notification ↔ Bool?
-
Pass true to disable notification for the message
getter/setter pair
- extra ↔ String?
-
Matches requests with responses; maps to the field @extra.
getter/setter pairinherited
- from_background ↔ Bool?
-
Pass true if the message is sent from the background
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- protect_content ↔ Bool?
-
Pass true if the content of the message must be protected from forwarding and saving; for bots only
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scheduling_state ↔ MessageSchedulingState?
-
Message scheduling state; pass null to send message immediately. Messages sent to a secret chat, live location messages and self-destructing messages can't be scheduled
getter/setter pair
- tdType → String
-
JSON object type; maps to the field @type.
no setteroverride
- update_order_of_installed_sticker_sets ↔ Bool?
-
Pass true if the user explicitly chosen a sticker or a custom emoji from an installed sticker set; applicable only to sendMessage and sendMessageAlbum
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
{dynamic skipNulls = true}) → String -
Serialize a Td instance to a JSON string.
If
skipNullsistruethe fields with null values are not serialized.inherited -
toMap(
{dynamic skipNulls = true}) → Map< String, dynamic> -
Create a Map from a Td instance.
override
-
toString(
{dynamic skipNulls = false}) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited