def send_welcome(message): user = User(telegram_id=message.chat.id, username=message.chat.username) if user.not_in_base(): user.add_user_in_db() message = user.get_welcome_message() bot.send_message(chat_id=user.user_id, text=message, reply_markup=START_TEST_BUTTON)
def send_contacts(message): user = User(telegram_id=message.chat.id, username=message.chat.username) if user.not_in_base(): user.add_user_in_db() message = content.service_msg['contacts'] bot.send_message(chat_id=user.user_id, text=message)