Przeglądaj źródła

Fixed Some Genstr Bugs (#61)

* OKk

* a

Co-authored-by: Akshay Rajput <thehamkercat@gmail.com>
Sρι∂у 5 lat temu
rodzic
commit
b42d0b1571
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      wbb/modules/genstr.py

+ 4 - 0
wbb/modules/genstr.py

@@ -28,7 +28,11 @@ async def genstr(_, message):
         if not number.text:
             continue
         phone = number.text.strip()
+        if phone.startswith("/"):
+            continue
         confirm = await app.ask(chat.id, f'`Is "{phone}" correct?` \n\nSend: `y`\nSend: `n`')
+        if confirm.text.startswith("/"):
+            continue
         if "y" in confirm.text.lower():
             break
     try: