Feat: started menu command and admin field
This commit is contained in:
4
main.py
4
main.py
@@ -5,7 +5,7 @@ from sys import exit
|
||||
import uvloop
|
||||
|
||||
from nwxraybot import NwXrayBot, Settings
|
||||
from nwxraybot.handlers import HelloHandler
|
||||
from nwxraybot.handlers import *
|
||||
from nwxraybot.models import User
|
||||
|
||||
if __name__ == "__main__":
|
||||
@@ -21,5 +21,5 @@ if __name__ == "__main__":
|
||||
|
||||
# Start bot
|
||||
bot = NwXrayBot(config.bot_token.get_secret_value())
|
||||
bot.include_routers(HelloHandler(bot)())
|
||||
bot.include_routers(HelloHandler(bot), MenuHandler(bot))
|
||||
uvloop.run(bot.start(skip_updates=True))
|
||||
|
||||
Reference in New Issue
Block a user