При вводе .heart выходит данное сообщение(скрин)
Как исправить? Вот код:
import sys
import asyncio
import time
from pyrogram import Client, filters
from pyrogram.errors import FloodWait
from pyrogram.types import ChatPermissions
import time
from time import sleep
import random
app = Client(“my_account”)
heart_emoji = [
“✨-💎”,
“✨-🌺”,
“☁️-😘”,
“✨-🌸”,
“🌾-🐸”,
“🔫-💥”,
“☁️-💟”,
“🍀-💖”,
“🌴-🐼”,
]
edit_heart = ‘'’
1 1 1 1 1 1 1 1 1
1 1 2 2 1 2 2 1 1
1 2 2 2 2 2 2 2 1
1 2 2 2 2 2 2 2 1
1 1 2 2 2 2 2 1 1
1 1 1 2 2 2 1 1 1
1 1 1 1 2 1 1 1 1
1 1 1 1 1 1 1 1 1
'''
@app.on_message(filters.command(“heart”, prefixes=“.”) & filters.me)
def heart(_, msg):
# play anim
frame_index = 0
while(frame_index != len(heart_emoji)):
msg.edit(msg.edit, edit_heart.replace(“1”, heart_emoji.split(“-”))
.replace(“2”, heart_emoji.split(“-”)))
sleep(1)
frame_index = frame_index + 1
msg.edit(chat, message, text)
app.run()