diff --git a/aiogram_bot/handlers/hastebin.py b/aiogram_bot/handlers/hastebin.py index e651f09..4a74d70 100644 --- a/aiogram_bot/handlers/hastebin.py +++ b/aiogram_bot/handlers/hastebin.py @@ -41,7 +41,14 @@ async def command_paste(message: types.Message): url=md.hlink("HasteBin", document_url), size=len(content), ) - await dst.reply(text, allow_sending_without_reply=True) + + reply_markup = types.InlineKeyboardMarkup() + reply_markup.add(types.InlineKeyboardButton( + _("Open paste"), + url=document_url + )) + + await dst.reply(text, allow_sending_without_reply=True, reply_markup=reply_markup) for message_to_delete in messages_to_delete: with suppress(TelegramAPIError): diff --git a/locales/bot.pot b/locales/bot.pot index 0b2915b..b498188 100644 --- a/locales/bot.pot +++ b/locales/bot.pot @@ -118,6 +118,10 @@ msgid "" "Content size: {size} bytes" msgstr "" +#: aiogram_bot/handlers/hastebin.py:46 +msgid "Open paste" +msgstr "" + #: aiogram_bot/handlers/new_chat_members.py:72 msgid "I'm bot" msgstr ""