This commit is contained in:
Danish
2021-03-09 00:51:54 +05:30
committed by GitHub
parent 21c6136e15
commit a104e40539

View File

@@ -123,7 +123,7 @@ async def name(event):
name = "PM Text"
async with event.client.conversation(pru) as conv:
await conv.send_message(
"**PM Text**\nEnter the new Pmpermit text.\n\nu can use `{name}` `{fullname}` `{count}` `{mention}` `{username}` Too\n\nUse /cancel to terminate the operation."
"**PM Text**\nEnter the new Pmpermit text.\n\nu can use `{name}` `{fullname}` `{count}` `{mention}` `{username}` to get this from user Too\n\nUse /cancel to terminate the operation."
)
response = conv.wait_event(events.NewMessage(chats=pru))
response = await response
@@ -157,7 +157,7 @@ async def media(event):
return await conv.send_message("Operation cancelled!!")
except BaseException:
pass
media = await event.client.download_media(response, "alvpcc")
media = await event.client.download_media(response, "pmpcc")
if not (response.text).startswith("/") and not response.text == "":
url = response.text
else: