def call_main_menu(call): msg = Message(1) msg.menu(call.message.chat.username) keyboard = Markup() keyboard.start() bot.send_message(call.message.chat.id, msg.text, reply_markup=keyboard.keyboard)
def start(message): is_exist = start(message.chat.id) msg = Message(1) msg.menu(message.chat.username) keyboard = Markup() keyboard.start() if is_exist: pass else: bot.send_message(message.chat.id, 'Добро пожаловать') bot.send_message(message.chat.id, msg.text, reply_markup=keyboard.keyboard)