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
answerGuestQuery is directly typed on Api — call it straight off bot.api.
import type { AnswerGuestQueryParams } from "@yaebal/types";
await bot.api.answerGuestQuery({
guest_query_id: "...",
result: {} /* InlineQueryResult */,
} satisfies AnswerGuestQueryParams);context shortcut
also available as ctx.answer() on
1
context type — see @yaebal/contexts.
/** Use this method to reply to a received guest message. On success, a [SentGuestMessage](https://core.telegram.org/bots/api/#sentguestmessage) object is returned. */
ctx.answer(params: Omit<AnswerGuestQueryParams, "guest_query_id">)official Bot API docs: https://core.telegram.org/bots/api/#answerguestquery