Initial, nothing works

This commit is contained in:
2024-07-19 04:32:27 +03:00
commit 41e459521f
13 changed files with 214 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
from telebot import TeleBot
from . import basic
def register_handlers(bot: TeleBot):
basic.register_handlers(bot)
+15
View File
@@ -0,0 +1,15 @@
from telebot import TeleBot
from telebot import types as tt
def start(message: tt.Message, bot: TeleBot, logger, t):
bot.send_message(message.chat.id, t("start"))
def help_(message: tt.Message, bot: TeleBot, logger, t):
bot.send_message(message.chat.id, t("help"))
def register_handlers(bot: TeleBot):
bot.register_message_handler(start, commands=["start"])
bot.register_message_handler(help_, commands=["help"])