Уведомления

Группа в Telegram: @pythonsu

#1 Дек. 7, 2022 19:21:06

M3rg1N
Зарегистрирован: 2022-12-07
Сообщения: 1
Репутация: +  0  -
Профиль   Отправить e-mail  

Помогите решить ошибку в юзерботе

При вводе .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()

Прикреплённый файлы:
attachment Screenshot_2022-12-07-15-07-21-18_c759c44d10a956b96f85cc66750ff86e.jpg (826,2 KБ)

Офлайн

Board footer

Модераторировать

Powered by DjangoBB

Lo-Fi Version