Replymessage unavailable
import asyncio
from pyrogram import Client
apps = [
Client(
name="abot",
api_id=1234,
api_hash="abcfedgh12345678",
proxy={"scheme": "socks5", "hostname": "127.0.0.1", "port": 2080},
plugins=dict(root="plugins"),
hide_password=True
),
Client(
name="bbot",
api_id=1234,
api_hash="abcfedgh12345678",
proxy={"scheme": "socks5", "hostname": "127.0.0.1", "port": 2080},
plugins=dict(root="plugins"),
hide_password=True
)
]
async def main():
for app in apps:
await app.start()
await asyncio.Event().wait()
asyncio.run(main())
—————————-
from pyrogram import Client, filters
@Client.on_message(filters.me & filters.command(["r"]))
async def start(client, message):
await message.delete()
try:
await client.send_message("me", str(message))
except:
await message.reply('Error Code 01')