Python code org 𝗔⃞+
Yangi animatsiya ⏳
#━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━#
import asyncio
from pyrogram import Client, filters
#━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━#
app = Client("my_account")
#━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━#
@app.on_message(filters.command("loading", prefixes=".") & filters.me)
async def loading_animation(client, message):
frames = ["⏳ [▢▢▢▢▢▢▢▢▢▢] 0%",
"⏳ [■▢▢▢▢▢▢▢▢▢] 10%",
"⏳ [■■▢▢▢▢▢▢▢▢] 25%",
"⏳ [■■■▢▢▢▢▢▢▢] 30%",
"⏳ [■■■■■▢▢▢▢▢] 50%",
"⏳ [■■■■■■■▢▢▢] 70%",
"⏳ [■■■■■■■■■▢] 90%",
"✓ [■■■■■■■■■■] 100%"]
for frame in frames:
await message.edit_text(frame)
await asyncio.sleep(1.0)
await message.delete()
#━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━#
app.run()
#━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━#
1 · 137 ·