Airgram

Guides
/
/
Methods

api.sendInlineQueryResultMessage()

Sends the result of an inline query as a message. Returns the sent message. Always clears a chat draft message

Parameters SendInlineQueryResultMessageParams:

NameTypeDescription
chatIdnumber Target chat
messageThreadIdnumber If not 0, a message thread identifier in which the message will be sent
replyToMessageIdnumber Identifier of a message to reply to or 0
options Options to be used to send the message; pass null to use default options
queryIdstring Identifier of the inline query
resultIdstring Identifier of the inline result
hideViaBotboolean 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")
Returns ApiResponse interface:
interface ApiResponse {
  _: 'sendInlineQueryResultMessage' | 'error'
  airgram: Airgram
  request: {
    method: 'sendInlineQueryResultMessage'
    params: SendInlineQueryResultMessageParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}