![]() ![]() It is even possible to make his answers useful. If there are no errors, we will continue. We open bot.py, import libraries and create the main variables. But, so that it works properly on Heroku servers, we specify version 2.2.3. Install pipenv, if it is not already available. If the bot is large, then immediately create files where you will put functions, classes, etc., otherwise, the code readability tends to zero. First start.įirst, create a file, which will be the bot ‘s main bot.py code. On this work with BotFather is over, let’s move on to the next part. Top – sparse headers from the “Web Developer Topics” Next, we add a couple of commands to it: assign /setcommands and one message, because /setcommands does not add a command, but sets them from scratch, send commands to it.Īll – sparse headers from the tab “Smart Topics”. ![]() It is advisable to save the API key and go into a dialog with the bot so that you do not have to dig into the correspondence with BotFather
0 Comments
Leave a Reply. |