AddQuickReplyShortcutInlineQueryResultMessage class final
Adds a message to a quick reply shortcut via inline bot. 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> - AddQuickReplyShortcutInlineQueryResultMessage
Constructors
- AddQuickReplyShortcutInlineQueryResultMessage({required String shortcutName, required int replyToMessageId, required int queryId, required String resultId, required bool hideViaBot})
-
Adds a message to a quick reply shortcut via inline bot. 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
- hideViaBot → bool
-
Pass true to hide the bot, via which the message is sent. Can be used only for bots getOption("animation_search_bot_username") and getOption("photo_search_bot_username")
final
- queryId → int
-
Identifier of the inline query
final
- replyToMessageId → int
-
Identifier of a quick reply message in the same shortcut to be replied; pass 0 if none
final
- resultId → String
-
Identifier of the inline query result
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, int? queryId, String? resultId, bool? hideViaBot}) → AddQuickReplyShortcutInlineQueryResultMessage -
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.