hyperboria/nexus/bot/handlers/noop.py

13 lines
400 B
Python
Raw Normal View History

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()