SendInlineQueryResultMessage class final
SendInlineQueryResultMessage (sendInlineQueryResultMessage) - TDLib function
Sends the result of an inline query as a message. Returns the sent message. Always clears a chat draft message.
- chatId: Target chat.
- messageThreadId: If not 0, the message thread identifier in which the message will be sent.
- replyTo: Information about the message or story to be replied; pass null if none (optional).
- options: Options to be used to send the message; pass null to use default options (optional).
- queryId: Identifier of the inline query.
- resultId: Identifier of the inline query result.
- hideViaBot: Pass true to hide the bot, via which the message is sent. Can be used only for bots getOption("animation_search_bot_username"), getOption("photo_search_bot_username"), and getOption("venue_search_bot_username").
Message is returned on completion.
- Inheritance
-
- Object
- TdFunction
- SendInlineQueryResultMessage
Constructors
- SendInlineQueryResultMessage({required int chatId, required int messageThreadId, InputMessageReplyTo? replyTo, MessageSendOptions? options, required int queryId, required String resultId, required bool hideViaBot})
-
SendInlineQueryResultMessage (sendInlineQueryResultMessage) - TDLib function
const
Properties
- chatId → int
-
Target chat
final
- currentObjectId → String
-
TDLib object type for current class instance
no setteroverride
- 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"), getOption("photo_search_bot_username"), and getOption("venue_search_bot_username")
final
- messageThreadId → int
-
If not 0, the message thread identifier in which the message will be sent
final
- options → MessageSendOptions?
-
Options to be used to send the message; pass null to use default options
final
- queryId → int
-
Identifier of the inline query
final
- replyTo → InputMessageReplyTo?
-
Information about the message or story to be replied; pass null 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
Methods
-
copyWith(
{int? chatId, int? messageThreadId, InputMessageReplyTo? replyTo, MessageSendOptions? options, int? queryId, String? resultId, bool? hideViaBot}) → SendInlineQueryResultMessage - Copy model with modified properties.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
[dynamic extra]) → Map< String, dynamic> -
Convert model to TDLib JSON format
override
-
toString(
) → String -
Convert model to TDLib JSON format, encoded into String.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultObjectId → const String
- TDLib object type