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
-
1maybe this channel doesn't allow for this and you can't change it.furas– furas2022年09月15日 03:15:53 +00:00Commented Sep 15, 2022 at 3:15
1 Answer 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
Lonami
7,3212 gold badges25 silver badges49 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
lang-py