from pyrogram import Client
app = Client("my_account")
new_chat_id = "new_chat_id"
with app:
for message in app.iter_history("source_chat_id"):
app.send_message(new_chat_id, message.text)
from aiogram import types
@dp.message_handler(content_types=types.ContentType.TEXT)
async def auto_reply(message: types.Message):
await message.answer("Спасибо за ваше сообщение!")