File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 66from aiogram import Dispatcher , Router , html
77from aiogram .dispatcher .event .handler import HandlerObject
88from aiogram .filters import Command , CommandObject
9- from aiogram .types import CallbackQuery
9+ from aiogram .types import CallbackQuery , LinkPreviewOptions
1010
1111from raito import Raito , rt
1212from 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 )
You can’t perform that action at this time.
0 commit comments