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

Issue with Telegram sessions - happens for a variable session time settings #44

Open
sherlockwisdom opened this issue Nov 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sherlockwisdom
Copy link
Member

Some messages published on Telegram face this issue causing them to not publish

Traceback (most recent call last):
  File "/publisher/pnba.py", line 136, in send_message
    asyncio.run(client.message(recipient=recipient, text=message))
  File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
    return future.result()
  File "/publisher/telegram_client.py", line 341, in message
    raise error
  File "/publisher/telegram_client.py", line 335, in message
    await client.send_message(recipient, text)
  File "/usr/local/lib/python3.9/site-packages/telethon/client/messages.py", line 840, in send_message
    entity = await self.get_input_entity(entity)
  File "/usr/local/lib/python3.9/site-packages/telethon/client/users.py", line 440, in get_input_entity
    await self._get_entity_from_string(peer))
  File "/usr/local/lib/python3.9/site-packages/telethon/client/users.py", line 532, in _get_entity_from_string
    for user in (await self(
  File "/usr/local/lib/python3.9/site-packages/telethon/client/users.py", line 30, in __call__
    return await self._call(self._sender, request, ordered=ordered)
  File "/usr/local/lib/python3.9/site-packages/telethon/client/users.py", line 87, in _call
    result = await future
telethon.errors.rpcerrorlist.AuthKeyUnregisteredError: The key is not registered in the system (caused by GetContactsRequest)
2024-11-04 11:43:20,725 - grpc_publisher_service - ERROR - bad argument type for built-in operation
Traceback (most recent call last):
  File "/publisher/grpc_publisher_service.py", line 677, in PublishContent
    return response(
TypeError: bad argument type for built-in operation```
@sherlockwisdom sherlockwisdom added the bug Something isn't working label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant