first commit
This commit is contained in:
2
bot.0.1/keybords/__init__.py
Executable file
2
bot.0.1/keybords/__init__.py
Executable file
@@ -0,0 +1,2 @@
|
||||
from keybords.client_kb import custom_kb_client
|
||||
from keybords.admin_kb import button_case_admin
|
||||
8
bot.0.1/keybords/admin_kb.py
Executable file
8
bot.0.1/keybords/admin_kb.py
Executable file
@@ -0,0 +1,8 @@
|
||||
from aiogram.types import ReplyKeyboardMarkup, KeyboardButton
|
||||
|
||||
|
||||
# - кнопки клавиатуры админа
|
||||
button_load = KeyboardButton("/Загрузить")
|
||||
button_delete = KeyboardButton("/Удалить")
|
||||
|
||||
button_case_admin = ReplyKeyboardMarkup(resize_keyboard=True).add(button_load).add(button_delete)
|
||||
14
bot.0.1/keybords/client_kb.py
Executable file
14
bot.0.1/keybords/client_kb.py
Executable file
@@ -0,0 +1,14 @@
|
||||
from aiogram.types import ReplyKeyboardMarkup, KeyboardButton # , ReplyKeyboardRemove - нужен для удаления клавиатуры
|
||||
|
||||
|
||||
b1 = KeyboardButton("/Start")
|
||||
b2 = KeyboardButton("/bitcoin")
|
||||
b3 = KeyboardButton("%х%у%й%")
|
||||
b4 = KeyboardButton("Поделиться номером", request_contact=True)
|
||||
b5 = KeyboardButton("Отправить где я ", request_location=True)
|
||||
b6 = KeyboardButton("/Меню")
|
||||
b7 = KeyboardButton("/погода")
|
||||
b8 = KeyboardButton("/dice")
|
||||
|
||||
custom_kb_client = ReplyKeyboardMarkup(resize_keyboard=True) # one_time_keyboard=True - для одноразовости клавиатуры
|
||||
custom_kb_client.add(b1).add(b2).insert(b3).insert(b6).row(b7, b4, b5, b8)
|
||||
Reference in New Issue
Block a user