Skip to content

Commit

Permalink
Two lines for doors in bot
Browse files Browse the repository at this point in the history
  • Loading branch information
matjack1 committed Oct 31, 2023
1 parent 3191ef0 commit 87cb9bf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions TelegramBot/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,12 @@ def help_command(update: Update, context: CallbackContext) -> None:
def open_command(update: Update, context: CallbackContext) -> None:
keyboard = [
[
InlineKeyboardButton('Annulla', callback_data='open_cancel'),
InlineKeyboardButton('Annulla', callback_data='open_cancel')
],
[
InlineKeyboardButton('EGEO18-INT', callback_data=f'open_confirm_{DOOR1_IP}'),
InlineKeyboardButton('EGEO18-EXT', callback_data=f'open_confirm_{DOOR2_IP}'),
InlineKeyboardButton('EGEO18-FABLAB', callback_data=f'open_confirm_{DOOR3_IP}'),
InlineKeyboardButton('EGEO18-FABLAB', callback_data=f'open_confirm_{DOOR3_IP}')
]
]
update.message.reply_text('Quale porta devo aprire?',
Expand Down

0 comments on commit 87cb9bf

Please sign in to comment.