Available methods

answerGuestQuery()

Use this method to reply to a received guest message. On success, a SentGuestMessage object is returned.

parameters

parametertyperequireddescription
guest_query_idstringrequiredUnique identifier for the query to be answered
resultInlineQueryResultrequiredA JSON-serialized object describing the message to be sent

returns

SentGuestMessage

usage in yaebal

not (yet) hard-typed on Api — call it through the generic .call<T>() escape hatch documented in @yaebal/types.

bot.ts
import type { AnswerGuestQueryParams, SentGuestMessage } from "@yaebal/types";

await bot.api.call<SentGuestMessage>("answerGuestQuery", {
  guest_query_id: "...",
  result: {} /* InlineQueryResult */,
} satisfies AnswerGuestQueryParams);