-
Notifications
You must be signed in to change notification settings - Fork 0
/
keyboards.py
29 lines (24 loc) · 1.25 KB
/
keyboards.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from aiogram.types import InlineKeyboardButton, KeyboardButton
from aiogram.utils.keyboard import InlineKeyboardBuilder, ReplyKeyboardBuilder
class Markups():
async def start():
button = InlineKeyboardButton(text='Start', callback_data='startGame')
markup = InlineKeyboardBuilder().add(button).as_markup()
return markup
async def pistol():
yourself = InlineKeyboardButton(text='Shoot yourself', callback_data='yourself')
Dealer = InlineKeyboardButton(text='Shoot the Dealer', callback_data='Dealer')
markup = InlineKeyboardBuilder().add(yourself).row(Dealer).as_markup()
return markup
async def again():
button = InlineKeyboardButton(text='Play again', callback_data='startGame')
markup = InlineKeyboardBuilder().add(button).as_markup()
return markup
async def newRound(first):
button = InlineKeyboardButton(text='New round', callback_data=f'newRound{first}')
markup = InlineKeyboardBuilder().add(button).as_markup()
return markup
async def giveGun():
button = InlineKeyboardButton(text='Give the gun to the Dealer', callback_data='giveGun')
markup = InlineKeyboardBuilder().add(button).as_markup()
return markup