mirror of
https://github.com/nexus-stc/hyperboria
synced 2024-12-04 17:02:53 +01:00
681817ceae
GitOrigin-RevId: 83514338be1d662518bab9fe5ab6eefef98f229f
13 lines
400 B
Python
13 lines
400 B
Python
from library.telegram.base import RequestContext
|
|
from telethon import events
|
|
|
|
from .base import BaseCallbackQueryHandler
|
|
|
|
|
|
class NoopHandler(BaseCallbackQueryHandler):
|
|
filter = events.CallbackQuery(pattern='^/noop$')
|
|
|
|
async def handler(self, event: events.ChatAction, request_context: RequestContext):
|
|
request_context.statbox(action='start', mode='noop')
|
|
await event.answer()
|