hyperboria/nexus/bot/widgets/admin_widget.py
the-superpirate 9ce67ec590 - feat(pylon): Refactor code
- feat(idm): Rename IDM-2 to IDM
  - feat(idm): Open IDM
3 internal commit(s)

GitOrigin-RevId: e302e9b5cda18cca1adc4ae8a3d906714d222106
2021-04-12 23:38:54 +03:00

17 lines
514 B
Python

from idm.api.proto.chat_manager_service_pb2 import Chat as ChatPb
from nexus.bot.application import TelegramApplication
class AdminWidget:
def __init__(self, application: TelegramApplication, chat: ChatPb):
self.application = application
self.chat = chat
async def render(self):
return (
'Ban: `/ban 12345 20d Spam`\n'
'Ban (silent): `/ban 12345 100h`\n'
'List of banned chats: `/banlist`\n'
'Unban chat: `/unban 12345`'
)