mirror of
https://github.com/nexus-stc/hyperboria
synced 2024-12-14 05:37:47 +01:00
12 lines
356 B
Python
12 lines
356 B
Python
|
from library.telegram.base import RequestContext
|
||
|
from telethon import events
|
||
|
|
||
|
from .base import BaseHandler
|
||
|
|
||
|
|
||
|
class StopHandler(BaseHandler):
|
||
|
filter = events.NewMessage(incoming=True, pattern='^/stop$')
|
||
|
|
||
|
async def handler(self, event: events.ChatAction, request_context: RequestContext):
|
||
|
request_context.statbox(action='show', mode='stop')
|