telethon forward Media (photos and videos)

Viewed 31

I am using a telegram bot that forwards messages from a certain channel to any other channel I am on. I want it to forward media files, it doesn't forward media file. Also getting this error:

RPCError 400: CHAT_FORWARDS_RESTRICTED (caused by SendMediaRequest)

My code:

@BotzHubUser.on(events.NewMessage(incoming=True, chats=FROM))
async def sender_bH(event):
    for i in TO:
        try:
            await BotzHubUser.send_message(
                i,
                event.message
            )
        except Exception as e:
            print(e)
0 Answers
Related