-
Notifications
You must be signed in to change notification settings - Fork 27
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
[Feature Idea] Working with calls #35
Comments
no libtgvoip should never be used programmatically outside the official clients because one wrong comma and everything crashes (in fact the dev doesn't work for telegram anymore), we should only implement the new library (https://github.com/TelegramMessenger/tgcalls) |
Okay, I was not up to date with that, using tgcalls would be fine |
We would need to stream the audio/video content from and to the server, that would put a lot of stress on the botapi and a lot of work |
It would be disabled by default of course and can only be activated with a command line comment. Allowing calls would let this api really stand out compared to most other userbot implementations |
@code1mountain How would you handle the communication between the client and the (web) server? |
websocket? |
I would not have any live communication from the server to the client. Just normal requests to play audio or start/stop/download the recording of the incoming audio/video stream. |
@code1mountain That is correct. AFAIK the only well-integrated and really usable implementations reside in MadelineProto and tdlib |
Okey, maybe we should see what use cases we could have? I can think of those:
I think maybe a mp3 upload for sending and an internet-radio like stream for download could be sufficient for a first version? Do we know what the resource usage could look like? |
@luckydonald noice |
All those just need the ability to trigger a call, not to actually transmit audio. |
We should also think about call events. Currently that's just |
As video chat is a thing, too, probably RTMP could make sense. |
It would be nice to work with calls using the bot api. Because streaming the data live would be quite complicated, I think it would be nice if you would be able to play audio (/video) files in a call and record the incoming audio (/video). That would allow a wide variety of interesting bots like a mailbox (if you don't answer the call within x seconds, it asks the user to leave a message that will then be sent into the chat as voice message), web-radio, voice assistant, alarm clocks with a real ringtone and much more
We would need to add libtgvoip to this project to support calls. Please leave your feedback.
The text was updated successfully, but these errors were encountered: