Proxy that "pretends" to be a full TelegramBotApi implementation.
TelegramBotApi
Request method implemented by each platform.
Method name
Parameters object
Promise<T>
Retrieve and clear the captured webhook reply payload.
Returns null if no payload was captured (e.g., the first call had files,
or no API calls were made during this update).
Enable webhook reply mode.
Call this BEFORE handleUpdate() to capture the first text-only API call
as a JSON payload instead of sending it via fetch.
⚠️ Important trade-off: When a call is captured, the corresponding
ctx.reply() / ctx.api.* method returns an empty object {} instead
of the real Telegram response. This means you cannot rely on the return
value (e.g., msg.message_id will be undefined).
Use this only when you don't need the return value of the first API call.
Abstract core describing the transport layer.