-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Support calls #177
Comments
Telegram calls? I have never used the Telegram API through Telethon, so I have no clue how that works. But I guess, instead using a microphone, you would stream the |
I have no idea how to stream it :( I read this lib but i didnt understand much https://github.com/danog/libtgvoip Sent from my Samsung SM-G530FZ using FastHub |
Could you explain how you currently accept a call? |
Im currently using another client but i think u will receive an update "UpdatePhoneCall". Then u call "acceptCallRequest" |
But Telethon doesn't even support the calls protocol yet so I have no idea how you pretend to "send" (this should be "stream") an |
Do u know on messages.getDhConfig what i have to pass to version and random_lenght parameters? |
@Seby2000, Although official Telegram API docs are very outdated, they can still be useful sometimes. |
@cher-nov i have already read it. |
So, is it possible to initiate calls or not? |
Not sure, I haven't looked into it. If all you need to make the calls is use the Telegram API, then sure you can since all methods are available. If some other weird encryption is required, or since it's peer to peer I think?, then no, there's nothing built for that on Telethon yet. Maybe interfacing libtgvoip is enough. |
Try https://github.com/danog/MadelineProto/blob/master/magna.php P.S. Sorry Lonami had to do it <3 |
@danog you know you can also contribute to Telethon right? It's not that hard, and Python is easy to read :) Even though Madeline is indeed great and has been added to the list of Telegram apps some people may still prefer to go with an implementation written in Python itself, if Python is what they use, since they'll depend on no other external tools. |
@Lonami AES IGE without openssl when? |
Daniil is writing madeline.py, but he will release it only once he'll get 50 donation of 1[€$whatever] or more.... |
@stek29 that has been a thing since the very beginning. Making use of openssl if available (see issue 199) was a recent enhancement.
Of course, because PHP is his first priority, and he isn't going to spend time for free like that. Telethon on the other hand is just Python alone, and another open source project on its own which I develop only because I want to. |
@Lonami, how hard would it be to do a python wrapper for libtgvoip? I am ready to contribute if it takes a reasonable amount of time. |
It would not be excessively hard, since there's already a |
If you really are willing to work on it feel free to fork the project and maintain the extension yourself. I'll help as much as I can, but calls are definitely not a priority on my list. |
Can you please elaborate on what exactly are the problems with that proof-of-concept as of now? I am also considering an easier solution, by using zeromq Not as perfect as a binding but definitely easier to implement. |
It's calling a external compiler to generate the code that embeds the required parameters to stabilish the call ;) There isn't really a need for |
I was actually looking into using zeromq on php-libtgvoip. I am partial to zeromq since its a less-headache solution overall. I also felt that the libtgvoip is very poorly documented and writing zeromq communication channel would be much easier than reverse-engineering their whole API
that sounds bad |
All the "hard" work is already done on that repository I keep linking. It's only missing a few tweaks. Shouldn't be too hard to pick up. C extensions for Python aren't that hard either really (also linked a small one you can use as a base). |
I forgot to ask, does this run on telegram servers directly? |
No? Calls are peer to peer. |
WHAT. okay, now i can understand why the quality is so great, no intermediary server to deal with 👍 |
I'm not sure if there's an option to disable peer to peer. Don't take my word on this. |
I dont want to disable it. I like it being p2p rather than having a server to deal with. |
Did you create |
Yes. |
How can i send an mp3 audio when accepting calls?
The text was updated successfully, but these errors were encountered: