You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Facing this issue while running start or other commands:
[ERROR/2024-08-11 16:50:42,447] asyncio: Task exception was never retrieved future: <Task finished name='Task-194' coro=<UpdateMethods._dispatch_update() done, defined at /usr/local/lib/python3.10/dist-packages/telethon/client/updates.py:514> exception=ValueError('Cannot get entity by phone number as a bot (try using integer IDs, not strings)')> Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/telethon/client/users.py", line 530, in _get_entity_from_string for user in (await self( File "/usr/local/lib/python3.10/dist-packages/telethon/client/users.py", line 30, in call return await self._call(self._sender, request, ordered=ordered) File "/usr/local/lib/python3.10/dist-packages/telethon/client/users.py", line 87, in _call result = await future telethon.errors.rpcerrorlist.BotMethodInvalidError: The API access for bot users is restricted. The method you tried to invoke cannot be executed as a bot (caused by GetContactsRequest) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/telethon/client/updates.py", line 554, in _dispatch_update await builder.resolve(self) File "/usr/local/lib/python3.10/dist-packages/telethon/events/common.py", line 99, in resolve await self._resolve(client) File "/usr/local/lib/python3.10/dist-packages/telethon/events/newmessage.py", line 94, in _resolve self.from_users = await _into_id_set(client, self.from_users) File "/usr/local/lib/python3.10/dist-packages/telethon/events/common.py", line 33, in _into_id_set chat = await client.get_input_entity(chat) File "/usr/local/lib/python3.10/dist-packages/telethon/client/users.py", line 438, in get_input_entity await self._get_entity_from_string(peer)) File "/usr/local/lib/python3.10/dist-packages/telethon/client/users.py", line 535, in _get_entity_from_string raise ValueError('Cannot get entity by phone number as a ' ValueError: Cannot get entity by phone number as a bot (try using integer IDs, not strings) [ERROR/2024-08-11 16:50:43,647] asyncio: Task exception was never retrieved future: <Task finished name='Task-223' coro=<UpdateMethods._dispatch_update() done, defined at /usr/local/lib/python3.10/dist-packages/telethon/client/updates.py:514> exception=ValueError('Cannot get entity by phone number as a bot (try using integer IDs, not strings)')> Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/telethon/client/users.py", line 530, in _get_entity_from_string for user in (await self( File "/usr/local/lib/python3.10/dist-packages/telethon/client/users.py", line 30, in call return await self._call(self._sender, request, ordered=ordered) File "/usr/local/lib/python3.10/dist-packages/telethon/client/users.py", line 87, in _call result = await future telethon.errors.rpcerrorlist.BotMethodInvalidError: The API access for bot users is restricted. The method you tried to invoke cannot be executed as a bot (caused by GetContactsRequest) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/telethon/client/updates.py", line 554, in _dispatch_update await builder.resolve(self) File "/usr/local/lib/python3.10/dist-packages/telethon/events/common.py", line 99, in resolve await self._resolve(client) File "/usr/local/lib/python3.10/dist-packages/telethon/events/newmessage.py", line 94, in _resolve self.from_users = await _into_id_set(client, self.from_users) File "/usr/local/lib/python3.10/dist-packages/telethon/events/common.py", line 33, in _into_id_set chat = await client.get_input_entity(chat) File "/usr/local/lib/python3.10/dist-packages/telethon/client/users.py", line 438, in get_input_entity await self._get_entity_from_string(peer)) File "/usr/local/lib/python3.10/dist-packages/telethon/client/users.py", line 535, in _get_entity_from_string raise ValueError('Cannot get entity by phone number as a ' ValueError: Cannot get entity by phone number as a bot (try using integer IDs, not strings)
The text was updated successfully, but these errors were encountered:
Facing this issue while running start or other commands:
[ERROR/2024-08-11 16:50:42,447] asyncio: Task exception was never retrieved future: <Task finished name='Task-194' coro=<UpdateMethods._dispatch_update() done, defined at /usr/local/lib/python3.10/dist-packages/telethon/client/updates.py:514> exception=ValueError('Cannot get entity by phone number as a bot (try using integer IDs, not strings)')> Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/telethon/client/users.py", line 530, in _get_entity_from_string for user in (await self( File "/usr/local/lib/python3.10/dist-packages/telethon/client/users.py", line 30, in call return await self._call(self._sender, request, ordered=ordered) File "/usr/local/lib/python3.10/dist-packages/telethon/client/users.py", line 87, in _call result = await future telethon.errors.rpcerrorlist.BotMethodInvalidError: The API access for bot users is restricted. The method you tried to invoke cannot be executed as a bot (caused by GetContactsRequest) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/telethon/client/updates.py", line 554, in _dispatch_update await builder.resolve(self) File "/usr/local/lib/python3.10/dist-packages/telethon/events/common.py", line 99, in resolve await self._resolve(client) File "/usr/local/lib/python3.10/dist-packages/telethon/events/newmessage.py", line 94, in _resolve self.from_users = await _into_id_set(client, self.from_users) File "/usr/local/lib/python3.10/dist-packages/telethon/events/common.py", line 33, in _into_id_set chat = await client.get_input_entity(chat) File "/usr/local/lib/python3.10/dist-packages/telethon/client/users.py", line 438, in get_input_entity await self._get_entity_from_string(peer)) File "/usr/local/lib/python3.10/dist-packages/telethon/client/users.py", line 535, in _get_entity_from_string raise ValueError('Cannot get entity by phone number as a ' ValueError: Cannot get entity by phone number as a bot (try using integer IDs, not strings) [ERROR/2024-08-11 16:50:43,647] asyncio: Task exception was never retrieved future: <Task finished name='Task-223' coro=<UpdateMethods._dispatch_update() done, defined at /usr/local/lib/python3.10/dist-packages/telethon/client/updates.py:514> exception=ValueError('Cannot get entity by phone number as a bot (try using integer IDs, not strings)')> Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/telethon/client/users.py", line 530, in _get_entity_from_string for user in (await self( File "/usr/local/lib/python3.10/dist-packages/telethon/client/users.py", line 30, in call return await self._call(self._sender, request, ordered=ordered) File "/usr/local/lib/python3.10/dist-packages/telethon/client/users.py", line 87, in _call result = await future telethon.errors.rpcerrorlist.BotMethodInvalidError: The API access for bot users is restricted. The method you tried to invoke cannot be executed as a bot (caused by GetContactsRequest) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/telethon/client/updates.py", line 554, in _dispatch_update await builder.resolve(self) File "/usr/local/lib/python3.10/dist-packages/telethon/events/common.py", line 99, in resolve await self._resolve(client) File "/usr/local/lib/python3.10/dist-packages/telethon/events/newmessage.py", line 94, in _resolve self.from_users = await _into_id_set(client, self.from_users) File "/usr/local/lib/python3.10/dist-packages/telethon/events/common.py", line 33, in _into_id_set chat = await client.get_input_entity(chat) File "/usr/local/lib/python3.10/dist-packages/telethon/client/users.py", line 438, in get_input_entity await self._get_entity_from_string(peer)) File "/usr/local/lib/python3.10/dist-packages/telethon/client/users.py", line 535, in _get_entity_from_string raise ValueError('Cannot get entity by phone number as a ' ValueError: Cannot get entity by phone number as a bot (try using integer IDs, not strings)
The text was updated successfully, but these errors were encountered: