make the bot.
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
from aiogram.types import InlineKeyboardButton, InlineKeyboardMarkup
|
||||
from aiogram.utils.keyboard import InlineKeyboardBuilder
|
||||
|
||||
|
||||
def get_links_keyboard() -> InlineKeyboardMarkup:
|
||||
"""
|
||||
Creates an inline keyboard markup with external links and callback query button.
|
||||
"""
|
||||
builder = InlineKeyboardBuilder()
|
||||
builder.add(InlineKeyboardButton(text="Google", url="https://google.com"))
|
||||
builder.add(InlineKeyboardButton(text="Contact Support 💬", callback_data="support_contact"))
|
||||
builder.adjust(1)
|
||||
return builder.as_markup()
|
||||
@@ -1,13 +0,0 @@
|
||||
from aiogram.types import KeyboardButton, ReplyKeyboardMarkup
|
||||
from aiogram.utils.keyboard import ReplyKeyboardBuilder
|
||||
|
||||
|
||||
def get_main_menu_keyboard() -> ReplyKeyboardMarkup:
|
||||
"""
|
||||
Creates the main menu reply keyboard markup.
|
||||
"""
|
||||
builder = ReplyKeyboardBuilder()
|
||||
builder.add(KeyboardButton(text="Help ❓"))
|
||||
builder.add(KeyboardButton(text="About ℹ️"))
|
||||
builder.adjust(2)
|
||||
return builder.as_markup(resize_keyboard=True)
|
||||
Reference in New Issue
Block a user