rayanfer32 / tgindexpro Goto Github PK
View Code? Open in Web Editor NEWFile Stream Index of Telegram Chat / Channel / Group.
Home Page: https://rayanfer32.github.io/TgindexPro
License: GNU General Public License v3.0
File Stream Index of Telegram Chat / Channel / Group.
Home Page: https://rayanfer32.github.io/TgindexPro
License: GNU General Public License v3.0
I try to start the application locally.
I filled out: "API_ID", "API_HASH", "SESSION_String".
And "include_chats" = [1234567890] with my personal chat-id number. I used a bot called "RawDataBot" to fetch my chat-id.
It won't start and instead gives this error:
user@machine:~/TgindexPro$ python3 -m app
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/user/TgindexPro/app/__main__.py", line 19, in <module>
Indexer().run()
File "/home/user/TgindexPro/app/main.py", line 46, in run
self.loop.run_until_complete(self.startup())
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "/home/user/TgindexPro/app/main.py", line 32, in startup
await setup_routes(self.server, Views(self.tg_client))
File "/home/user/TgindexPro/app/routes.py", line 84, in setup_routes
alias_id = generate_alias_id(chat)
File "/home/user/TgindexPro/app/routes.py", line 15, in generate_alias_id
title = chat.title
AttributeError: 'User' object has no attribute 'title'
i have already add 4 env value, here is the error infomation.
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/runner/TgindexPro-1/app/main.py", line 19, in
Indexer().run()
File "/home/runner/TgindexPro-1/app/main.py", line 46, in run
self.loop.run_until_complete(self.startup())
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/home/runner/TgindexPro-1/app/main.py", line 32, in startup
await setup_routes(self.server, Views(self.tg_client))
File "/home/runner/TgindexPro-1/app/routes.py", line 84, in setup_routes
alias_id = generate_alias_id(chat)
File "/home/runner/TgindexPro-1/app/routes.py", line 15, in generate_alias_id
title = chat.title
AttributeError: 'User' object has no attribute 'title'
videos with dual audio or subtitle can't be played in online player..
so please do something about it.
Is it possible to sort the files in ascending order. (From 1st message to the last)
This will be really helpful for channels with TV shows.
Hello could be added login with access? I never tried it in Python and it will be awesome to restrict the access so Repl.it don't target the accounts, thanks!
I cannot run the project in repl.it,I hope to get help
Dear Sir
How to Deploy TG Index in Hosting Servers or Cloudflare / workers. I find out Demo Site Tg Index in Cloud Flare hosted
Url : https://tg.prabha.tk/0rJ12AcMMH7KA0
I like above TG Index i Kindly request you reply me
i tried to deploy code issue is i want to show 3 channels and only 1 is allowed
python3 app/generate_session_string.py
Traceback (most recent call last):
File "app/generate_session_string.py", line 12, in
api_id = os.environ['API_ID']#int(input("Enter your API_ID: "))
File "/usr/lib/python3.8/os.py", line 675, in getitem
raise KeyError(key) from None
KeyError: 'API_ID'
python3 run.py
ERROR:telethon.network.mtprotosender:Request caused struct.error: 'I' format requires 0 <= number <= 4294967295: GetUsersRequest(id=[InputUser(user_id=1001508344724, access_hash=0)])
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/runner/TgindexPro/app/main.py", line 19, in
Indexer().run()
File "/home/runner/TgindexPro/app/main.py", line 46, in run
self.loop.run_until_complete(self.startup())
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/home/runner/TgindexPro/app/main.py", line 32, in startup
await setup_routes(self.server, Views(self.tg_client))
File "/home/runner/TgindexPro/app/routes.py", line 83, in setup_routes
chat = await client.get_entity(chat_id)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/telethon/client/users.py", line 287, in get_entity
inputs.append(await self.get_input_entity(x))
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/telethon/client/users.py", line 440, in get_input_entity
users = await self(functions.users.GetUsersRequest([
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/telethon/client/users.py", line 30, in call
return await self._call(self._sender, request, ordered=ordered)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/telethon/client/users.py", line 58, in _call
future = sender.send(request, ordered=ordered)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/telethon/network/mtprotosender.py", line 176, in send
state = RequestState(request)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/telethon/network/requeststate.py", line 17, in init
self.data = bytes(request)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/telethon/tl/tlobject.py", line 194, in bytes
return self._bytes()
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/telethon/tl/functions/users.py", line 72, in _bytes
b'\x15\xc4\xb5\x1c',struct.pack('<i', len(self.id)),b''.join(x._bytes() for x in self.id),
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/telethon/tl/functions/users.py", line 72, in
b'\x15\xc4\xb5\x1c',struct.pack('<i', len(self.id)),b''.join(x._bytes() for x in self.id),
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/telethon/tl/types/init.py", line 11928, in _bytes
struct.pack('<I', self.user_id)
Every time I try to generate session string it gave me the error
Traceback (most recent call last):
File "app/generate_session_string.py", line 12, in
api_id = os.environ['API_ID']#int(input("Enter your API_ID: "))
File "/usr/lib/python3.8/os.py", line 675, in getitem
raise KeyError(key) from None
KeyError: 'API_ID'
But all the keys are not blank
Does the API work?
When I try http://mydomain.com:8080/qMqVTrDyMoGCaX/api/
it does not work, using Postman with GET. I choose the channel, and append an /api
to the url. Correct?
how to fix this bro
i used this repo https://github.com/rayanfer32/tg-index
Heorko Suspend Account
in 10 second after Deploy
M3U links/files work fine with the default index but when generated with the OTG indexing, M3U links/files doesn't play with VLC. Here are the VLC error logs ~
-- logger module started --
main: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
main: playlist is empty
-- logger module stopped --
-- logger module started --
main: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
access error: HTTP 410 error
http error: local stream 1 error: Cancellation (0x8)
-- logger module stopped --
We can no longer see thr files from Telegram. It just showing a blank background. Can you fix it please ?
Hi everyone, I have another issue.
I state that I have a Gigabit connection, so I think that the problem is not attributable to the connection.
I don't understand why there is buffering when I play my videos, I also notice that the buffer appears every time at the same point.
I hope someone can help me.
I am impressed and thank you for your work.
Would it be possible that you could provide a TV addon for Kodi.tv?
Best regards
hi , i am getting this error code. any idea to reslove ?
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/runner/TgindexPro/app/main.py", line 19, in
Indexer().run()
File "/home/runner/TgindexPro/app/main.py", line 25, in init
self.tg_client = Client(session_string, api_id, api_hash)
File "/home/runner/TgindexPro/app/telegram.py", line 11, in init
super().init(StringSession(session_string), *args, **kwargs)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/telethon/sessions/string.py", line 37, in init
self._dc_id, ip, self._port, key = struct.unpack(
struct.error: unpack requires a buffer of 275 bytes
exit status 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.