You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I've been using telemirror for a while now and came to test all of its features. I can confirm that it pulls content from restricted channels but just not media (images,videos). I just want to confirm if this is a problem from my side or its something that cannot be achieved ?
The text was updated successfully, but these errors were encountered:
As I've been using telemirror for a while now and came to test all of its features. I can confirm that it pulls content from restricted channels but just not media (images,videos). I just want to confirm if this is a problem from my side or its something that cannot be achieved ?
You can only retrieve and forward content from protected channels by re-saving it. The easiest ones are text and images. Text is simply copied and images are downloaded as an array of bytes and sent. The other types of media require a bit more processing logic.
I have now completely removed option to forward from such channels, but this is easily fixed by removing checks for the noforwards chat flag and implementing re-saving.
For forwarding text and pictures, you can do the following:
Check that chat has the noforwards flag
If the incomin_message.media is a picture, download it as an array of bytes (or even to storage) and re-send it:
As I've been using telemirror for a while now and came to test all of its features. I can confirm that it pulls content from restricted channels but just not media (images,videos). I just want to confirm if this is a problem from my side or its something that cannot be achieved ?
The text was updated successfully, but these errors were encountered: