tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.07k stars 1.44k forks source link

[Exploratory] Possibility of programmatic voice call #106

Closed devxpy closed 6 years ago

devxpy commented 6 years ago

Hello, I want to do a voice call from pure python code. Is something like that even possible? I didn't see anything like that in the API.

levlam commented 6 years ago

You can receive new calls through updateCall and create new calls using createCall, but calls encrypted data transfer isn't handled by TDLib. You will need to use libtgvoip for that.

devxpy commented 6 years ago

Does this provide the same level of quality as telegram apps? I haven't seen such call quality ever, over the internet.

Its for an IOT project and I will use this on a raspberry pi.

ldb commented 6 years ago

libtgvoip is used internally by the apps, so it will likely be the same quality.

devxpy commented 6 years ago

Ok, i will see if i can fashion a python wrapper for this

levlam commented 6 years ago

Yes. All Telegram apps use libtgvoip for voice calls.