pull/160/head
Who? 2025-07-09 07:16:47 +00:00
parent f5f38057da
commit ab479d4869
1 changed files with 3 additions and 1 deletions

View File

@ -19,6 +19,8 @@ from herokutl.tl.types import Message
from .. import loader, utils
from ..inline.types import BotInlineMessage, InlineCall
from ..inline.utils import Utils
inlineUtils=Utils()
@loader.tds
@ -139,7 +141,7 @@ class InlineStuff(loader.Module):
if message.from_user.id != self.client.tg_id:
await message.answer("You are not allowed to use this")
else:
await message.answer("Your information about userbot:\n<blockquote>prefix: {prefix}\nRAM: {ram_usage} MB\nCPU: {cpu_usage}\nHosting: {host}</blockquote>\n\nThis Beta!".format(prefix=self.get_prefix(),ram_usage=utils.get_ram_usage(),cpu_usage=utils.get_cpu_usage(),host=utils.get_named_platform()), reply_markup=[{"text": "Restart", "callback": self.restart}])
await message.answer("Your information about userbot:\n<blockquote>prefix: {prefix}\nRAM: {ram_usage} MB\nCPU: {cpu_usage}\nHosting: {host}</blockquote>\n\nThis Beta!".format(prefix=self.get_prefix(),ram_usage=utils.get_ram_usage(),cpu_usage=utils.get_cpu_usage(),host=utils.get_named_platform()), reply_markup = inlineUtils.generate_markup(reply_markup=[{"text": "Restart", "callback": self.restart}]))
async def restart(self, call: InlineCall):
await call.edit("just test restarta")