devdetour / TelegramFUSE

A FUSE filesystem written in Python for reading and writing files to and from Telegram.
307 stars 36 forks source link

How to properly link the telegram channel #5

Open georgerabus opened 9 months ago

georgerabus commented 9 months ago

Traceback (most recent call last): File "/home/george/installs/TelegramFUSE/fuse/../Telegram/main.py", line 18, in init() File "/home/george/installs/TelegramFUSE/fuse/../Telegram/main.py", line 14, in init client = TelegramFileClient(session_name, api_id, api_hash, channel_link) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/george/installs/TelegramFUSE/Telegram/TelegramFUSE.py", line 34, in init self.channel_entity = self.client.get_entity(channel_link) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/george/.local/lib/python3.11/site-packages/telethon/sync.py", line 39, in syncified return loop.run_until_complete(coro) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/home/george/.local/lib/python3.11/site-packages/telethon/client/users.py", line 337, in get_entity result.append(await self._get_entity_from_string(x)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/george/.local/lib/python3.11/site-packages/telethon/client/users.py", line 576, in _get_entity_from_string raise ValueError( ValueError: Cannot find any entity corresponding to "https://web.telegram.org/k/#-2030084758"

devdetour commented 9 months ago

Hi, try a URL of the form: https://t.me/<your-channel-id>.