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

Help required #30

Closed
OsintUK opened this issue Oct 23, 2022 · 4 comments
Closed

Help required #30

OsintUK opened this issue Oct 23, 2022 · 4 comments

Comments

@OsintUK
Copy link

OsintUK commented Oct 23, 2022

Hi,

Can you help me please.

So I provide the following:
APP api id
APP api Hash
Mobile number
and then the mobile token.

I then provided the following test command: telepathy -t durov

I then received the following: The API access for bot users is restricted. The method you tried cannot be executed as a bot (caused by GetHistoryRequest)

any advice would be grateful

@rotivrotiv
Copy link

Traceback (most recent call last):
File "/home/kali/.local/bin/telepathy", line 8, in
sys.exit(cli())
File "/home/kali/.local/lib/python3.10/site-packages/click/core.py", line 829, in call
return self.main(*args, **kwargs)
File "/home/kali/.local/lib/python3.10/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/kali/.local/lib/python3.10/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/kali/.local/lib/python3.10/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/kali/.local/lib/python3.10/site-packages/telepathy/telepathy.py", line 1740, in cli
client.loop.run_until_complete(main())
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "/home/kali/.local/lib/python3.10/site-packages/telepathy/telepathy.py", line 1658, in main
result = await client(
File "/home/kali/.local/lib/python3.10/site-packages/telethon/client/users.py", line 30, in call
return await self._call(self._sender, request, ordered=ordered)
File "/home/kali/.local/lib/python3.10/site-packages/telethon/client/users.py", line 84, in _call
result = await future
telethon.errors.rpcerrorlist.UserpicUploadRequiredError: You must have a profile picture before using this method (caused by GetLocatedRequest)

@proseltd
Copy link
Owner

telethon.errors.rpcerrorlist.UserpicUploadRequiredError: You must have a profile picture before using this method (caused by GetLocatedRequest)

Referring you to the README:

"Finds users near to specified coordinates. Input should be longitude followed by latitude, seperated by a comma. This feature only works if your Telegram account has a profile image which is set to be publicly viewable."

This is also made clear in the error message.

@proseltd
Copy link
Owner

Hi,

Can you help me please.

So I provide the following: APP api id APP api Hash Mobile number and then the mobile token.

I then provided the following test command: telepathy -t durov

I then received the following: The API access for bot users is restricted. The method you tried cannot be executed as a bot (caused by GetHistoryRequest)

any advice would be grateful

Hello! Appears that you're using a bot API token and not a TDLib API key.

@OsintUK
Copy link
Author

OsintUK commented Oct 28, 2022

Thank you, you're correct, I need to wake up haha, cheers dude

@OsintUK OsintUK closed this as completed Oct 28, 2022
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

3 participants