mirror of
https://github.com/nexus-stc/hyperboria
synced 2024-12-05 01:12:55 +01:00
23 lines
628 B
Python
23 lines
628 B
Python
|
from library.telegram.base import RequestContext
|
||
|
from nexus.translations import t
|
||
|
from telethon import (
|
||
|
Button,
|
||
|
events,
|
||
|
)
|
||
|
|
||
|
from .base import BaseHandler
|
||
|
|
||
|
|
||
|
class AboutusHandler(BaseHandler):
|
||
|
filter = events.NewMessage(incoming=True, pattern='^/aboutus(@[A-Za-z0-9_]+)?$')
|
||
|
is_group_handler = True
|
||
|
|
||
|
async def handler(self, event: events.ChatAction, request_context: RequestContext):
|
||
|
request_context.statbox(action='show', mode='aboutus')
|
||
|
await event.reply(
|
||
|
t('ABOUT_US', request_context.chat.language),
|
||
|
buttons=Button.clear(),
|
||
|
link_preview=False,
|
||
|
)
|
||
|
|