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
AttributeError: 'User' object has no attribute 'title' #35
Comments
It appears you're searching for a user using the comprehensive flag and not the user flag. Is this correct? |
No as you can see this is the command i run : telepathy -t userintelegram -c |
Forgive me if I am misunderstanding, but "userintelegram" would be a username, not a group or channel, hence why Telegram's API is telling you the user object doesn't have a title, because you're trying to look up a user. Therefore, you should be using the user flag and not the comprehensive flag.
|
thank you Jordan i corrected it now and it doesn't return any errors but I think its not working for me i tried many users but i only get this message : User not found, this is likely because Telepathy has not encountered them yet |
Hi @elabdi, I think your version is an old one, the nickname search was introduced in last upgrades. Could you try to upgrade the Telepathy to the last release? |
thank you for your response, nope im using 2.3.2 and no success for me to make it run successfully |
ups, sorry I saw the log you provided.
As you can see there is Version 2.2.62. |
Yes i updated when you've told me there is a new version but no success 😑 |
how i fix it? Traceback (most recent call last): |
same issue. Telepathy | Version 2.3.2., python3.10 etc.. Looks like Telepathy script does not retrieve information for groupChat_id, only channel IDs can be targeted |
@LessDigital13 I clone the repository and use a virtualenv to maintain my system clean, so I activate the venv and from there I run the command for example:
I don't use it as a global package. @elabdi , what is the issue you are referring for? Can you update it, in this version on line 407 there is code that seems unrelated to your issue. @Shopimisrel There is a bug, I fixed it. I'll try to PR the fix in this couple of next days. |
Closing this issue in accordance with the new release, but feel free to reopen it if you still have any issues! |
telepathy -t ***** -c
[!] Performing comprehensive scan
[-] Fetching details for *****...
Traceback (most recent call last):
File "C:\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Python310\Scripts\telepathy.exe_main.py", line 7, in
File "C:\Python310\lib\site-packages\click\core.py", line 829, in call
return self.main(*args, **kwargs)
File "C:\Python310\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "C:\Python310\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Python310\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "C:\Python310\lib\site-packages\telepathy\telepathy.py", line 1759, in cli
client.loop.run_until_complete(main())
File "C:\Python310\lib\asyncio\base_events.py", line 646, in run_until_complete
return future.result()
File "C:\Python310\lib\site-packages\telepathy\telepathy.py", line 407, in main
name = entity.title
AttributeError: 'User' object has no attribute 'title'
The text was updated successfully, but these errors were encountered: