Пример #1
0
 def command_start(_, update):
     if TelegramApp._is_valid_user(update):
         update.message.reply_text(InterfaceBot.get_command_start())
     else:
         update.message.reply_text(UNAUTHORIZED_USER_MESSAGE)
Пример #2
0
 def command_start(_, update):
     if TelegramApp._is_valid_user(update):
         TelegramApp._send_message(
             update, InterfaceBot.get_command_start(markdown=True))
     elif TelegramApp._is_authorized_chat(update):
         TelegramApp._send_message(update, UNAUTHORIZED_USER_MESSAGE)