Chat id this client targets.
The chat id passed at construction time.
Constructs a new client bound to a single bot+chat combination.
Bot token from @BotFather.
Default chat id used by sendHtmlMessage when not overridden.
Sends an HTML-parsed message, optionally with an inline keyboard.
HTML message text (caller must pre-truncate/pre-escape).
OptionalreplyMarkup: InlineKeyboard
Optional inline keyboard rows.
Resolves when the message has been accepted by the Telegram API.
Fetches pending updates from Telegram starting at the given offset.
The update_id offset to pass to getUpdates.
Long-poll timeout in seconds (Telegram-side).
Procedure with updates and the next offset, or failure on HTTP error.
Fetches the latest update_id to use as a starting offset.
The next offset (latest update_id + 1), or 0 on failure.
Confirms updates up to the given offset (best-effort, never throws).
The offset to confirm.
Resolves when the best-effort acknowledgement completes.
Looks up the file_path for a given file_id via getFile.
The Telegram file_id.
The file_path string, or false when unavailable.
Downloads file content from the Telegram file storage.
The Telegram file_path returned by getFilePath.
Procedure with the binary Buffer, or failure on HTTP error.
Client for the subset of Telegram Bot API endpoints used by this app.