Create a telegram execution context
the telegram bot
the telegram update
reference to TelegramApi class
array of arguments parsed from the message
an instance of the telegram bot
an instance of the telegram update
string representing the type of update that was sent
Get the chat ID as a string
The chat ID
Get the message text from the current update
The message text as a string or empty string if not available
Get the user ID from the current update
The user ID or undefined if not available
Answer a guest query
text to reply with
one of HTML, MarkdownV2, Markdown, or an empty string for ascii
Promise with the API response
Answer a pre-checkout query
whether the payment can proceed
Optionalerror_message: stringerror message if not ok
Promise with the API response
Get File from telegram file_id
telegram file_id
Promise with the file response
Reply to the last message with text
text to reply with
one of HTML, MarkdownV2, Markdown, or an empty string for ascii
any additional options to pass to sendMessage
Promise with the API response
Reply to an inline message with a title and content
title to reply with
message contents to reply with
parse mode to use
Promise with the API response
Reply to the last message with a photo
url or file_id to photo
photo caption
any additional options to pass to sendPhoto
Promise with the API response
Reply to the last message with a video
string to a video on the internet or a file_id on telegram
any additional options to pass to sendVideo
Promise with the API response
Send an invoice for Telegram Stars
product name
product description
bot-defined invoice payload
amount of stars
Promise with the API response
Send typing in a chat
Promise with the API response
Reply to the last message with a stream of text
text to reply with
one of HTML, MarkdownV2, Markdown, or an empty string for ascii
any additional options to pass to sendMessage
Promise with the API response
Class representing the context of execution