from pyrogram import Client, types, filters
import time
from random import choice
api_id =
api_hash = ""
chat_id = ""
app = Client("123", api_id=api_id, api_hash=api_hash)
@app.on_message(filters=filters.incoming)
def call_react(client: Client, message: types.Message):
smile = '❤️', '', '', ''
time.sleep(2)
app.send_reaction(chat_id=message.chat.id, message_id=message.id, emoji=choice(smile))
app.run()