16 lines
447 B
Python
16 lines
447 B
Python
from telebot import TeleBot
|
|
from telebot.types import Message
|
|
|
|
|
|
def start(message: Message, bot: TeleBot, t, **kwargs):
|
|
bot.send_message(message.chat.id, t("start"))
|
|
|
|
|
|
def help_(message, bot, t, **kwargs):
|
|
bot.send_message(message.chat.id, t("help"))
|
|
|
|
|
|
def register_handlers(bot: TeleBot):
|
|
bot.register_message_handler(start, commands=["start"], pass_bot=True)
|
|
bot.register_message_handler(help_, commands=["help"], pass_bot=True)
|