Bot token
Public secure url
Public secure url
Bot token
Use this method to send answers to callback queries sent from inline keyboards. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. On success, True is returned.
Unique identifier for the query to be answered.
Text of the notification. If not specified, nothing will be shown to the user, 0-200 characters.
Default: false. If true, an alert will be shown by the client instead of a notification at the top of the chat screen. Defaults to false.
Use this method register the command message.
Command name (without "/" charater).
Command hanlder (executed when a message sent by a user matches the command message that is registered).
Use this method to unregister the command message.
Command name (include "/" charater, e.q: "/command-name").
Use this method to delete a message, including service messages, with the following limitations:
Unique identifier for the target chat or username of the target channel (in the format @channelusername
)
Identifier of the message to delete.
Use this method to edit captions of messages. On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.
Unique identifier for the target chat or username of the target channel (in the format @channelusername
).
Identifier of the message to edit.
Optional parameter. See.
Use this method to edit text messages. On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.
Unique identifier for the target chat or username of the target channel (in the format @channelusername
)
Identifier of the message to edit.
Optional parameter. See
Receive updates from the webhook and proceed to the corresponding handler.
Update from Telegram server.
Use this method to set a handler for specific events.
Event name, e.q: "callback_query".
Query handler.
Use this method to send photos. On success, the sent Message is returned.
Unique identifier for the target chat or username of the target channel (in the format @channelusername
)
Path photo to send.
Optional parameter. See
Use this method to send text messages. On success, the sent Message is returned.
Unique identifier for the target chat or username of the target channel (in the format @channelusername
)
Text of the message to be sent
Optional parameter. See
Use this method to start the webhook server to receive incoming updates from the Telegram server when the user sends a message or request.
Secret path to receive incoming updates
protocol port.
callback function called when the server is started.
Generated using TypeDoc
TelegramAPI constructor