answerGuestQuery()
Use this method to reply to a received guest message. On success, a SentGuestMessage object is returned.
parameters
| parameter | type | required | description |
|---|---|---|---|
guest_query_id | string | required | Unique identifier for the query to be answered |
result | InlineQueryResult | required | A JSON-serialized object describing the message to be sent |
returns
usage in yaebal
not (yet) hard-typed on Api — call it through the generic .call<T>() escape hatch documented in @yaebal/types.
import type { AnswerGuestQueryParams, SentGuestMessage } from "@yaebal/types";
await bot.api.call<SentGuestMessage>("answerGuestQuery", {
guest_query_id: "...",
result: {} /* InlineQueryResult */,
} satisfies AnswerGuestQueryParams);official Bot API docs: https://core.telegram.org/bots/api/#answerguestquery