From a9df2137145e7f1c56c20f1061a8023885fc8390 Mon Sep 17 00:00:00 2001 From: MpakobecEx Date: Sun, 18 Oct 2026 20:54:23 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D0=BF=D0=B8=D1=80=D0=BE=D0=B2?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D0=B5=20=D1=80=D0=B5=D1=84=D0=B5=D1=80=D0=B0?= =?UTF-8?q?=D0=BB=D1=8C=D0=BD=D0=BE=D0=B9=20=D1=81=D1=81=D1=8B=D0=BB=D0=BA?= =?UTF-8?q?=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 107c6be..5dd3b48 100644 --- a/bot.py +++ b/bot.py @@ -9,6 +9,7 @@ from datetime import time as dt_time from pathlib import Path from telegram import ( + CopyTextButton, InlineKeyboardButton, InlineKeyboardMarkup, InputFile, @@ -255,10 +256,21 @@ class MpakoBot: await message.reply_text("Не удалось получить ссылку. Попробуй позже.") return link = f"https://t.me/{username}?start=ref_{user.id}" + keyboard = InlineKeyboardMarkup( + [ + [ + InlineKeyboardButton( + "Скопировать ссылку", + copy_text=CopyTextButton(text=link), + ) + ] + ] + ) await message.reply_text( "Пригласи друга:\n" f"{link}\n\n" - "Когда друг впервые оплатит генерацию, ты получишь +3 генерации." + "Когда друг впервые оплатит генерацию, ты получишь +3 генерации.", + reply_markup=keyboard, ) async def _status( @@ -727,7 +739,7 @@ class MpakoBot: return True if is_admin: - is_premium = True + is_premium = False try: request, position = await self._queue.enqueue(