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

Error: AttributeError: 'User' object has no attribute 'title' #35

Open
spinnaker1 opened this issue Aug 1, 2023 · 0 comments
Open

Error: AttributeError: 'User' object has no attribute 'title' #35

spinnaker1 opened this issue Aug 1, 2023 · 0 comments

Comments

@spinnaker1
Copy link

spinnaker1 commented Aug 1, 2023

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'
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