AddQuickReplyShortcutMessage class final
Adds a message to a quick reply shortcut. If shortcut doesn't exist and there are less than getOption("quick_reply_shortcut_count_max") shortcuts, then a new shortcut is created. The shortcut must not contain more than getOption("quick_reply_shortcut_message_count_max") messages after adding the new message. Returns the added message
Returns QuickReplyMessage.
- Inheritance
-
- Object
- TdFunction<
QuickReplyMessage> - AddQuickReplyShortcutMessage
Constructors
- AddQuickReplyShortcutMessage({required String shortcutName, required int replyToMessageId, required InputMessageContent inputMessageContent})
-
Adds a message to a quick reply shortcut. If shortcut doesn't exist and there are less than getOption("quick_reply_shortcut_count_max") shortcuts, then a new shortcut is created. The shortcut must not contain more than getOption("quick_reply_shortcut_message_count_max") messages after adding the new message. Returns the added message
const
Properties
- canBeCalledSynchronously → bool
-
Whether TDLib documents this request as callable through
td_execute.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- inputMessageContent → InputMessageContent
-
The content of the message to be added; inputMessagePaidMedia, inputMessageForwarded and inputMessageLiveLocation aren't supported
final
- replyToMessageId → int
-
Identifier of a quick reply message in the same shortcut to be replied; pass 0 if none
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shortcutName → String
-
Name of the target shortcut
final
Methods
-
copyWith(
{String? shortcutName, int? replyToMessageId, InputMessageContent? inputMessageContent}) → AddQuickReplyShortcutMessage -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto 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
extraif 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.