tgcalls icon indicating copy to clipboard operation
tgcalls copied to clipboard

Private incoming and outgoing calls

Open MarshalX opened this issue 5 years ago • 5 comments

The entire cryptographic part of the project is ready. There is a demo of the implementation. It is necessary to rewrite it to clean code and add it to the library.

Demo of private calls: https://github.com/MarshalX/tgcalls/blob/master/pytgcalls/test.py

Currently, the ability to play from a file has not been added. Audio devices only

MarshalX avatar Mar 01 '21 01:03 MarshalX

when i run the example Demo of private calls ,has the error 'Client' object has no attribute 'send'" ,could you help me

ZyxEforce avatar Sep 22 '22 07:09 ZyxEforce

@ZyxEforce rollback your pyrogram version to 1.4.x version

MarshalX avatar Sep 22 '22 07:09 MarshalX

I have managed to make a call using this demo but it keeps showing "Exchanging encription keys". It should be managed by process_update I suppose but it's not being triggered, how can I fix this? Thanks!

    await client2.start()
    outgoingCall = OutgoingCall(client=client2, user_id='@hucoo')
    print(outgoingCall.state)
    await outgoingCall.request()

huco95 avatar Nov 22 '22 14:11 huco95

Hi. I don't support this demo, but, do you try to register the handler on init and print values?

something like

@outgoingCall.on_init_encrypted_call
async def process_call(call: Call):
    print('Outgoing call: ', call.auth_key_visualization)
    print(call.call.connections)

MarshalX avatar Nov 23 '22 21:11 MarshalX

I have managed to make a call using this demo but it keeps showing "Exchanging encription keys". It should be managed by process_update I suppose but it's not being triggered, how can I fix this? Thanks!

    await client2.start()
    outgoingCall = OutgoingCall(client=client2, user_id='@hucoo')
    print(outgoingCall.state)
    await outgoingCall.request()

Hi @huco95, could you make the private call works? I'm working on it in my free time and I got block in the "Exchanging encription keys" too.

pablodgonzalez avatar Jul 07 '23 03:07 pablodgonzalez