v0.0.9 18/07/2021

Co-authored-by: New-dev0 <New-dev0@users.noreply.github.com>
Co-authored-by: Aditya <me@xditya.me>
Co-authored-by: Amit Sharma <48654350+buddhhu@users.noreply.github.com>
Co-authored-by: sppidy <sppidy@users.noreply.github.com>
Co-authored-by: Arnab Paryali <Arnabxd@users.noreply.github.com>
Co-authored-by: divkix <divkix@users.noreply.github.com>
Co-authored-by: hellboi_atul <hellboi-atul@users.noreply.github.com>
Co-authored-by: Programming Error <error@notavailable.live>
This commit is contained in:
1Danish-00
2021-07-18 17:47:15 +05:30
parent 71fddc8844
commit 386eff647c
140 changed files with 3363 additions and 3068 deletions

View File

@@ -34,7 +34,7 @@ async def echo(e):
try:
user = e.text.split()[1]
if user.startswith("@"):
ok = await ultroid_bot.get_entity(user)
ok = await e.client.get_entity(user)
user = ok.id
else:
user = int(user)
@@ -43,7 +43,7 @@ async def echo(e):
if check_echo(e.chat_id, user):
return await eod(e, "Echo already activated for this user.")
add_echo(e.chat_id, user)
ok = await ultroid_bot.get_entity(user)
ok = await e.client.get_entity(user)
user = f"[{get_display_name(ok)}](tg://user?id={ok.id})"
await eor(e, f"Activated Echo For {user}.")
@@ -57,7 +57,7 @@ async def rm(e):
try:
user = e.text.split()[1]
if user.startswith("@"):
ok = await ultroid_bot.get_entity(user)
ok = await e.client.get_entity(user)
user = ok.id
else:
user = int(user)
@@ -65,7 +65,7 @@ async def rm(e):
return await eod(e, "Reply To A User.")
if check_echo(e.chat_id, user):
rem_echo(e.chat_id, user)
ok = await ultroid_bot.get_entity(user)
ok = await e.client.get_entity(user)
user = f"[{get_display_name(ok)}](tg://user?id={ok.id})"
return await eor(e, f"Deactivated Echo For {user}.")
await eor(e, "Echo not activated for this user")
@@ -75,8 +75,8 @@ async def rm(e):
async def okk(e):
if check_echo(e.chat_id, e.sender_id):
try:
ok = await bot.get_messages(e.chat_id, ids=e.id)
return await ultroid_bot.send_message(e.chat_id, ok)
ok = await e.client.get_messages(e.chat_id, ids=e.id)
return await e.client.send_message(e.chat_id, ok)
except Exception as er:
LOGS.info(er)
@@ -87,7 +87,7 @@ async def lstecho(e):
if k:
user = "**Activated Echo For Users:**\n\n"
for x in k:
ok = await ultroid_bot.get_entity(int(x))
ok = await e.client.get_entity(int(x))
kk = f"[{get_display_name(ok)}](tg://user?id={ok.id})"
user += "" + kk + "\n"
await eor(e, user)