mirror of
https://github.com/nexus-stc/hyperboria
synced 2025-01-04 15:55:56 +01:00
681817ceae
GitOrigin-RevId: 83514338be1d662518bab9fe5ab6eefef98f229f
17 lines
508 B
Python
17 lines
508 B
Python
from idm.api2.proto.chats_service_pb2 import ChatData as Chat
|
|
from nexus.bot.application import TelegramApplication
|
|
|
|
|
|
class AdminWidget:
|
|
def __init__(self, application: TelegramApplication, chat: Chat):
|
|
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`'
|
|
)
|