16 lines
435 B
Python

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"])