SendInlineQueryResultMessage
public struct SendInlineQueryResultMessage : Codable, Equatable, TDFunction
Sends the result of an inline query as a message. Returns the sent message. Always clears a chat draft message
-
Undocumented
Declaration
Swift
public typealias Result = Message
-
Target chat
Declaration
Swift
public let chatId: Int53
-
Identifier of a message to reply to or 0
Declaration
Swift
public let replyToMessageId: Int53
-
Options to be used to send the message
Declaration
Swift
public let options: SendMessageOptions
-
Identifier of the inline query
Declaration
Swift
public let queryId: TDInt64
-
Identifier of the inline result
Declaration
Swift
public let resultId: String
-
If true, there will be no mention of a 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”)
Declaration
Swift
public let hideViaBot: Bool
-
Sends the result of an inline query as a message. Returns the sent message. Always clears a chat draft message
Declaration
Swift
public init(chatId: Int53, replyToMessageId: Int53, options: SendMessageOptions, queryId: TDInt64, resultId: String, hideViaBot: Bool)
Parameters
chatId
Target chat
replyToMessageId
Identifier of a message to reply to or 0
options
Options to be used to send the message
queryId
Identifier of the inline query
resultId
Identifier of the inline result
hideViaBot
If true, there will be no mention of a 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”)