Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

'Client' object has no attribute 'send' with Pyrogram 2.0 #13

@afeno

Description

@afeno

Hello,

I was forced to upgrade pyrogram to v2.0.106 due to a "The msg_id is too low, the client time has to be synchronized." Error.

Now, with pyrogram v2 I get the following error 'Client' object has no attribute 'send'" that seems to be generated from tgvoip_pyrogram/base_call.py

See logs below:

./make_call.py
TgCrypto is missing! Pyrogram will work the same, but at a much slower speed. More info: https://docs.pyrogram.org/topics/speedups
D/tgvoip: === Updating voip config ===
D/tgvoip: {"audio_init_bitrate": 80000, "audio_max_bitrate": 100000, "audio_min_bitrate": 60000, "audio_bitrate_step_decr": 5000, "audio_bitrate_step_incr": 5000}
Traceback (most recent call last):
  File "./make_call.py", line 35, in <module>
    loop.run_until_complete(main())
  File "/usr/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete
    return future.result()
  File "./make_call.py", line 19, in main
    call = await voip_service.start_call('@alfredofenoglio')
  File "/home/ubuntu/.local/lib/python3.7/site-packages/tgvoip_pyrogram/service.py", line 52, in start_call
    await call.request()
  File "/home/ubuntu/.local/lib/python3.7/site-packages/tgvoip_pyrogram/outgoing_call.py", line 43, in request
    await self.get_dhc()
  File "/home/ubuntu/.local/lib/python3.7/site-packages/tgvoip_pyrogram/base_call.py", line 117, in get_dhc
    self.dhc = DH(await self.client.send(functions.messages.GetDhConfig(version=0, random_length=256)))
AttributeError: 'Client' object has no attribute 'send'
D/tgvoip: Entered VoIPController::Stop

As usual, my skills are not high enough to fix or find the root cause of the problem.... Any idea? Any help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions