From 2faebd6e935c9644658e0b156cf20a616f7de594 Mon Sep 17 00:00:00 2001 From: tema Date: Sat, 25 Mar 2023 23:12:27 +0200 Subject: [PATCH] Added donate --- handlers/private/main.py | 2 ++ keyboards/inline/donate.py | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 keyboards/inline/donate.py diff --git a/handlers/private/main.py b/handlers/private/main.py index 3c63961..5785d77 100644 --- a/handlers/private/main.py +++ b/handlers/private/main.py @@ -8,6 +8,7 @@ from aiogram.dispatcher.filters import ChatTypeFilter from load import dp, bot, config from keyboards.inline.keyboard import menu from parser import get_about_replacements +from keyboards.inline.donate import donate if config.logging_user: from database import register @@ -56,6 +57,7 @@ async def get_replace(message: types.Message): ) ), parse_mode="Markdown", + reply_markup=donate ) return await bot.send_message( diff --git a/keyboards/inline/donate.py b/keyboards/inline/donate.py new file mode 100644 index 0000000..c090741 --- /dev/null +++ b/keyboards/inline/donate.py @@ -0,0 +1,4 @@ +from aiogram.types import InlineKeyboardMarkup, InlineKeyboardButton + +donate = InlineKeyboardMarkup() +donate.add(InlineKeyboardButton("☕", url="https://send.monobank.ua/jar/7nXV3s5Txd")) -- 2.45.2