from pyrogram import Client, filters
from pyrogram.errors import FloodWait
from time import sleep
app = Client("my_account")
# ком type
@app.on_message(filters.command("type", prefixes=".") & filters.me)
def type(_, msg):
orig_text = msg.text.split(".type ", msxsplit=1)[1]
text = orig_text
tbp = ""
typing_symbol = "▓"
while(tbp != orig_text):
try:
msg.edit(tbp + typing_symbol)
sleep(0.05)
tbp = tbp + text[0]
text = text[1:]
msg.edit(tbp)
sleep(0.05)
except FloodWait as e:
sleep(e.x)
app.run()
Вот код ошибка
python main.py
File "main.py", line 27
except FloodWait as e:
^
IndentationError: unindent does not match any outer indentation level
from pyrogram.errors import FloodWait
from time import sleep
app = Client("my_account")
# ком type
@app.on_message(filters.command("type", prefixes=".") & filters.me)
def type(_, msg):
orig_text = msg.text.split(".type ", msxsplit=1)[1]
text = orig_text
tbp = ""
typing_symbol = "▓"
while(tbp != orig_text):
try:
msg.edit(tbp + typing_symbol)
sleep(0.05)
tbp = tbp + text[0]
text = text[1:]
msg.edit(tbp)
sleep(0.05)
except FloodWait as e:
sleep(e.x)
app.run()
Вот код ошибка
python main.py
File "main.py", line 27
except FloodWait as e:
^
IndentationError: unindent does not match any outer indentation level