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

Private incoming and outgoing calls #19

Open
MarshalX opened this issue Mar 1, 2021 · 5 comments
Open

Private incoming and outgoing calls #19

MarshalX opened this issue Mar 1, 2021 · 5 comments
Labels
enhancement New feature or request Priority 3

Comments

@MarshalX
Copy link
Owner

MarshalX commented Mar 1, 2021

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 MarshalX added enhancement New feature or request Priority 4 labels Mar 1, 2021
@MarshalX MarshalX added this to To do in pytgcalls via automation Mar 1, 2021
@MarshalX MarshalX added this to To do in tgcalls via automation Mar 1, 2021
Repository owner deleted a comment from begginerdeveops Jun 6, 2022
@ZyxEforce
Copy link

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

@MarshalX
Copy link
Owner Author

@ZyxEforce rollback your pyrogram version to 1.4.x version

@huco95
Copy link

huco95 commented Nov 22, 2022

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()

@MarshalX
Copy link
Owner Author

MarshalX commented Nov 23, 2022

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)

@pablodgonzalez
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Priority 3
Projects
tgcalls
To do
Development

No branches or pull requests

4 participants