Skip to content

Commit c2e90b0

Browse files
committed
feat: add footer
1 parent b594cd8 commit c2e90b0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

raito/handlers/help.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from aiogram import Dispatcher, Router, html
77
from aiogram.dispatcher.event.handler import HandlerObject
88
from aiogram.filters import Command, CommandObject
9-
from aiogram.types import CallbackQuery
9+
from aiogram.types import CallbackQuery, LinkPreviewOptions
1010

1111
from raito import Raito, rt
1212
from raito.plugins.commands import description, hidden
@@ -93,9 +93,11 @@ async def on_pagination(
9393
limit: int,
9494
) -> None:
9595
commands = _get_formatted_commands(raito.dispatcher)
96+
footer = html.italic(html.link("Powered by Raito", "https://github.com/Aidenable/Raito"))
9697

9798
await paginator.answer(
98-
items=commands[offset : offset + limit],
99+
items=[*commands[offset : offset + limit], footer],
99100
separator="\n\n",
100101
parse_mode="HTML",
102+
link_preview_options=LinkPreviewOptions(is_disabled=True),
101103
)

0 commit comments

Comments
 (0)