Update plugins/hexxateam1(1).py
Browse files- plugins/hexxateam1(1).py +5 -1
plugins/hexxateam1(1).py
CHANGED
|
@@ -27,7 +27,10 @@ async def get_response(client, chat, user_id, message, func=None, **kwargs):
|
|
| 27 |
async def re_fetch(m):
|
| 28 |
return await m.client.get_messages(m.chat_id, ids=m.id)
|
| 29 |
|
| 30 |
-
async def watch_edits(client, chat, msg_id, timeout=16, uid=
|
|
|
|
|
|
|
|
|
|
| 31 |
async with client.conversation(chat, timeout=timeout) as conv:
|
| 32 |
func = lambda e: (e.id == msg_id and search(rf"(?i)Current turn: (.+){uid}", e.message.text)) or "Daily limit" in e.text
|
| 33 |
response = conv.wait_event(
|
|
@@ -37,6 +40,7 @@ async def watch_edits(client, chat, msg_id, timeout=16, uid=""):
|
|
| 37 |
await asyncio.sleep(3)
|
| 38 |
return await re_fetch(response)
|
| 39 |
|
|
|
|
| 40 |
async def do_click(msg, *buttons):
|
| 41 |
async def _click():
|
| 42 |
try:
|
|
|
|
| 27 |
async def re_fetch(m):
|
| 28 |
return await m.client.get_messages(m.chat_id, ids=m.id)
|
| 29 |
|
| 30 |
+
async def watch_edits(client, chat, msg_id, timeout=16, uid=None):
|
| 31 |
+
if uid is None:
|
| 32 |
+
uid = str((await client.get_me()).id)
|
| 33 |
+
|
| 34 |
async with client.conversation(chat, timeout=timeout) as conv:
|
| 35 |
func = lambda e: (e.id == msg_id and search(rf"(?i)Current turn: (.+){uid}", e.message.text)) or "Daily limit" in e.text
|
| 36 |
response = conv.wait_event(
|
|
|
|
| 40 |
await asyncio.sleep(3)
|
| 41 |
return await re_fetch(response)
|
| 42 |
|
| 43 |
+
|
| 44 |
async def do_click(msg, *buttons):
|
| 45 |
async def _click():
|
| 46 |
try:
|