See LICENSE_1_0.txt for more information.This is an experimental Streamlit chatbot app built for LLaMA2 (or any other LLM). Telegram Bot API server source code is licensed under the terms of the Boost Software License. If you want to avoid losing updates between logging out on the old server and launching on the new server, you can remove the bot's webhook using the methodĭeleteWebhook, then use the method close to close the bot instance.Īfter the instance is closed, locate the bot's subdirectory in the working directory of the old server by the bot's user ID, move the subdirectory to the working directory of the new serverĪnd continue sending requests to the new server as usual. To move a bot from one local server to another you can use the method logOut to log out on the old server before switching to the new one. If the bot is logged in on more than one server simultaneously, there is no guarantee that it will receive all updates. 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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |