NormaLens / FileStreamBot

Repository Moved to https://github.com/DeekshithSH/TG-FileStreamBot
https://github.com/DeekshithSH/TG-FileStreamBot
5 stars 23 forks source link

Channel download is not fixed #6

Closed ramanveerji closed 1 year ago

ramanveerji commented 1 year ago

The ON_HEROKU var is causing issue, also channel link generated has no hash. It needs to be fixed.

DeekshithSH commented 1 year ago

@ramanveerji I forgot that the bot support channel also 😅. Will fix it tomorrow.

DeekshithSH commented 1 year ago

Fixed the issue

ramanveerji commented 1 year ago

Fixed the issue

I tried to deploy. But now it is showing error. And bot is not deploying. This is the error ERROR - cannot import name 'get_file_info' from 'WebStreamer.utils.file_properties' (/workspace/WebStreamer/utils/file_properties.py)

DeekshithSH commented 1 year ago

Fixed the issue

I tried to deploy. But now it is showing error. And bot is not deploying. This is the error ERROR - cannot import name 'get_file_info' from 'WebStreamer.utils.file_properties' (/workspace/WebStreamer/utils/file_properties.py)

I tested it and at that time it's working I will check it tomorrow

ramanveerji commented 1 year ago

Fixed the issue

I tried to deploy. But now it is showing error. And bot is not deploying. This is the error ERROR - cannot import name 'get_file_info' from 'WebStreamer.utils.file_properties' (/workspace/WebStreamer/utils/file_properties.py)

I tested it and at that time it's working I will check it tomorrow

ok

DeekshithSH commented 1 year ago

Did you used git clone to clone the repository or git pull to fetch the changes Or Directly copy pasted the code of stream.py?

ramanveerji commented 1 year ago

Did you used git clone to clone the repository or git pull to fetch the changes Or Directly copy pasted the code of stream.py?

Gitclone

DeekshithSH commented 1 year ago

@ramanveerji Try deleting and clone the repository again

ramanveerji commented 1 year ago

@ramanveerji Try deleting and clone the repository again

I will try and report soon

ramanveerji commented 1 year ago

@DeekshithSH The bot got deployed, but I am getting the following error when I try to send a file in a private channel. The bot is having all admin rights Telegram says: [400 MESSAGE_ID_INVALID] - The message id is invalid (caused by "messages.EditMessage")

DeekshithSH commented 1 year ago

@ramanveerji Forwarded the File?

ramanveerji commented 1 year ago

@ramanveerji Forwarded the File?

Yes. It doesn't support forwarding?

DeekshithSH commented 1 year ago

@ramanveerji Bot can't edit forwarded messages

ramanveerji commented 1 year ago

@ramanveerji Forwarded the File?

Yes. It doesn't support forwarding?

Actually, I was using some other repo, I do not know, it was old, and in it, forwarding was working and bot can give the links as well.

ramanveerji commented 1 year ago

I tried forwarding files without the tag, It should work. Kindly check.

DeekshithSH commented 1 year ago

@ramanveerji Forwarded the File?

Yes. It doesn't support forwarding?

When forwarding chose "Hide Sender Name"

ramanveerji commented 1 year ago

Yes, I did that only, still nothing happens.

ramanveerji commented 1 year ago

Or maybe some files aren't supported. I tried forwarding a song, maybe I must try other file types also.

ramanveerji commented 1 year ago

Audio files aren't supported. Videos, zips, apks, pdfs are working fine.

DeekshithSH commented 1 year ago

Or maybe some files aren't supported. I tried forwarding a song, maybe I must try other file types also.

Yes the current code only generate link for Document and Video

ramanveerji commented 1 year ago

Understood, anyway I got to know something new..

DeekshithSH commented 1 year ago

@ramanveerji Forwarded the File?

Yes. It doesn't support forwarding?

Actually, I was using some other repo, I do not know, it was old, and in it, forwarding was working and bot can give the links as well.

Some bots delete the forwarded message and send it again without forward tag to add Download Button