Moving a bot from one local server to another If the server is launched in -local mode, make sure that the bot can correctly handle absolute file paths in response to getFile requests. To guarantee that your bot will receive all updates, you must deregister it with the server by calling the method logOut.Īfter the bot is logged out, you can replace the address to which the bot sends requests with the address of your local server and use it in the usual way. Subscribe to to be the first to know about the latest updates and join the discussion in a bot to a local server See the Telegram Bot API server build instructions generator for detailed instructions on how to build the Telegram Bot API server. See the Telegram Bot API documentation for a description of the Bot API interface and a complete list of available classes, methods and updates. See Bots: An introduction for developers for a brief description of Telegram Bots and their features. The Telegram Bot API server accepts only HTTP requests, so a TLS termination proxy needs to be used to handle remote HTTPS requests.īy default the Telegram Bot API server is launched on the port 8081, which can be changed using the option -http-port.
0 Comments
Leave a Reply. |