Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Link Not Showing #62

Open
simanto008 opened this issue Oct 3, 2024 · 0 comments
Open

File Link Not Showing #62

simanto008 opened this issue Oct 3, 2024 · 0 comments

Comments

@simanto008
Copy link

When forwraded the file the bot replys nothing
But the file is registerd in the database
And the deploy logs says this:

File "/usr/local/lib/python3.11/site-packages/pyrogram/dispatcher.py", line 240, in handler_worker
await handler.callback(self.client, *args)
File "/app/FileStream/bot/plugins/stream.py", line 39, in private_receive_handler
await get_file_ids(False, inserted_id, multi_clients, message)
File "/app/FileStream/utils/file_properties.py", line 22, in get_file_ids
log_msg = await send_file(FileStream, db_id, file_info['file_id'], message)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/FileStream/utils/file_properties.py", line 131, in send_file
file_caption = message.file_name
^^^^^^^^^^^^^^^^^
AttributeError: 'Message' object has no attribute 'file_name'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant