Change info feature

Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
This commit is contained in:
Yasir Aris M 2023-11-15 11:12:42 +07:00
parent 0f8af287f9
commit 8acd1a5f8b
2 changed files with 4 additions and 5 deletions

View file

@ -401,9 +401,8 @@ async def cmd_eval(self: Client, ctx: Message, strings) -> Optional[str]:
if ctx.from_user.is_self
else await ctx.reply_msg(strings("run_eval"), quote=True)
)
msg = ctx.caption if ctx.web_page_preview else ctx.text
code = (
msg.split(maxsplit=1)[1] if ctx.command else msg.split("\napp.run()")[0]
ctx.text.split(maxsplit=1)[1] if ctx.command else msg.split("\napp.run()")[0]
)
out_buf = io.StringIO()
out = ""

View file

@ -519,9 +519,9 @@ async def who_is(client, message):
message_out_str += f"<b>💠 Data Centre:</b> <code>{dc_id}</code>\n"
if bio:
message_out_str += f"<b>👨🏿‍💻 Bio:</b> <code>{bio}</code>\n"
message_out_str += f"<b>📸 Pictures:</b> {count_pic}"
message_out_str += f"<b>🧐 Restricted:</b> {message.from_user.is_restricted}"
message_out_str += f"<b>✅ Verified:</b> {message.from_user.is_verified}"
message_out_str += f"<b>📸 Pictures:</b> {count_pic}\n"
message_out_str += f"<b>🧐 Restricted:</b> {message.from_user.is_restricted}\n"
message_out_str += f"<b>✅ Verified:</b> {message.from_user.is_verified}\n"
message_out_str += f"<b>🌐 Profile Link:</b> <a href='tg://user?id={from_user.id}'><b>Click Here</b></a>\n"
if message.chat.type.value in (("supergroup", "channel")):
try: