Expand description

This module contains types representing Telegram API request bodies.

Structs

Use this method to close the bot instance before moving it from one local server to another. You need to delete the webhook before calling this method to ensure that the bot isn’t launched again after server restart. The method will return error 429 in the first 10 minutes after the bot is launched. Returns True on success. Requires no parameters.
A simple method for testing your bot’s authentication token. Requires no parameters. Returns basic information about the bot in form of a User object.
Use this method to receive incoming updates using long polling (wiki). Returns an Array of Update objects.
Use this method to log out from the cloud Bot API server before launching the bot locally. You must log out the bot before running it locally, otherwise there is no guarantee that the bot will receive updates. After a successful call, you can immediately log in on a local server, but will not be able to log in back to the cloud Bot API server for 10 minutes. Returns True on success. Requires no parameters.
Use this method to send text messages. On success, the sent Message is returned.

Enums