0

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)
CallMeStag
7,1831 gold badge10 silver badges27 bronze badges
asked Sep 14, 2022 at 22:51
1
  • 1
    maybe this channel doesn't allow for this and you can't change it. Commented Sep 15, 2022 at 3:15

1 Answer 1

1

As @furas pointed out in their comment, the channel probably has restricted content enabled, meaning you cannot reuse the media sent there.

answered Sep 27, 2022 at 14:29
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.