def start_bot():
bot = telebot.TeleBot(settings.bot_token)
# Command start
@bot.message_handler(commands=['start'])
def handler_start(message):
chat_id = message.chat.id
func.first_join(user_id=chat_id, name=message.from_user.username, code=message.text[6:])
bot.send_message(chat_id,
'Приветствуем! Дорогой друг!\n' {}'.format(message.from_user.first_name,
chat_id,),
reply_markup=menu.main_menu)