Update Ultroid v0.8
--------- Co-authored-by: Amit Sharma <48654350+buddhhu@users.noreply.github.com> Co-authored-by: Aditya <me@xditya.me> Co-authored-by: Dark <darkbeamer.official@gmail.com> Co-authored-by: buddhhu <amitsharma123234@gmail.com> Co-authored-by: Kaif <88398455+kaif-00z@users.noreply.github.com> Co-authored-by: 1Danish-00 <danish@ultroid.tech> Co-authored-by: TechiError <techierror@gmail.com> Co-authored-by: Dark <59723913+DarkBeamerYT@users.noreply.github.com>
This commit is contained in:
@@ -14,7 +14,7 @@ from telethon.utils import get_display_name
|
||||
|
||||
from pyUltroid.dB.echo_db import add_echo, check_echo, list_echo, rem_echo
|
||||
|
||||
from . import LOGS, events, ultroid_bot, ultroid_cmd
|
||||
from . import inline_mention, ultroid_cmd
|
||||
|
||||
|
||||
@ultroid_cmd(pattern="addecho( (.*)|$)")
|
||||
@@ -36,7 +36,7 @@ async def echo(e):
|
||||
return await e.eor("Echo already activated for this user.", time=5)
|
||||
add_echo(e.chat_id, user)
|
||||
ok = await e.client.get_entity(user)
|
||||
user = f"[{get_display_name(ok)}](tg://user?id={ok.id})"
|
||||
user = inline_mention(ok)
|
||||
await e.eor(f"Activated Echo For {user}.")
|
||||
|
||||
|
||||
@@ -63,16 +63,6 @@ async def rm(e):
|
||||
await e.eor("Echo not activated for this user")
|
||||
|
||||
|
||||
@ultroid_bot.on(events.NewMessage(incoming=True))
|
||||
async def okk(e):
|
||||
if check_echo(e.chat_id, e.sender_id):
|
||||
try:
|
||||
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)
|
||||
|
||||
|
||||
@ultroid_cmd(pattern="listecho$")
|
||||
async def lstecho(e):
|
||||
if k := list_echo(e.chat_id):
|
||||
|
||||
Reference in New Issue
Block a user