-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathconfig.xml
More file actions
1784 lines (1460 loc) · 60.9 KB
/
config.xml
File metadata and controls
1784 lines (1460 loc) · 60.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<config>
<option id="NTGCALLS_VERSION">1.3.0</option>
<option id="PYTGCALLS_VERSION">2.1.0</option>
<option id="PYPI_PACKAGE">py-tgcalls</option>
<!--REDIRECTS - they are case-insensitive -->
<redirects>
<redirect path="/changelog">/PyTgCalls/Changelogs</redirect>
<redirect path="/changelogs">/PyTgCalls/Changelogs</redirect>
</redirects>
<!--MACRO-->
<!--exceptions-->
<option id="BASE_EXCEPTIONS">
<config id="BASE_MTPROTO"/>
<category-title>exception <ref>pytgcalls.exceptions.<sb>NotInCallError</sb></ref></category-title>
<subtext><text>This error occurs when attempting to execute an action on a call that you have not joined.</text></subtext>
</option>
<option id="UNSUPPORTED_METHOD_EXCEPTION">
<category-title>exception <ref>pytgcalls.exceptions.<sb>UnsupportedMethod</sb></ref></category-title>
<subtext><text>This error occurs when attempting to execute an action on a call kind that doesn't support it.</text></subtext>
</option>
<option id="BASE_MTPROTO">
<category-title>exception <ref>pytgcalls.exceptions.<sb>NoMTProtoClient</sb></ref></category-title>
<subtext><text>This method can only be called with a valid MTProto client set.</text></subtext>
<category-title>exception <ref>pytgcalls.exceptions.<sb>ClientNotStarted</sb></ref></category-title>
<subtext>
<text>
Ensure you have started the process with <docs-ref link="/PyTgCalls/Basic Methods/Start">start()</docs-ref> before calling this method.
</text>
</subtext>
</option>
<option id="CONNECTION_EXCEPTIONS">
<config id="BASE_EXCEPTIONS"/>
<config id="GROUP_CALL_EXCEPTIONS"/>
</option>
<option id="GROUP_CALL_EXCEPTIONS">
<category-title>exception <ref>pytgcalls.exceptions.<sb>NoActiveGroupCall</sb></ref></category-title>
<subtext><text>You cannot edit a group call that hasn't been initiated.</text></subtext>
</option>
<option id="BASE_SYNC_C_EXCEPTION">
<category-title><ref><sb><shi language="c">#NTG_INVALID_UID</shi></sb></ref> <shi>-2</shi></category-title>
<subtext><text>The provided UID is invalid.</text></subtext>
</option>
<option id="BASE_C_EXCEPTIONS">
<category-title><ref><sb><shi language="c">#NTG_UNKNOWN_EXCEPTION</shi></sb></ref> <shi>-1</shi></category-title>
<subtext><text>An unknown exception occurred.</text></subtext>
</option>
<option id="BASE_CONNECTION_EXCEPTIONS">
<config id="BASE_C_EXCEPTIONS"/>
<category-title><ref><sb><shi language="c">#NTG_CONNECTION_NOT_FOUND</shi></sb></ref> <shi>-101</shi></category-title>
<config id="CONNECTION_NOT_FOUND_DESC"/>
</option>
<option id="STREAM_C_EXCEPTIONS">
<category-title><ref><sb><shi language="c">#NTG_FILE_NOT_FOUND</shi></sb></ref> <shi>-200</shi></category-title>
<subtext><text>The specified file was not found.</text></subtext>
<category-title><ref><sb><shi language="c">#NTG_ENCODER_NOT_FOUND</shi></sb></ref> <shi>-201</shi></category-title>
<subtext><text>The required encoder was not found.</text></subtext>
<category-title><ref><sb><shi language="c">#NTG_FFMPEG_NOT_FOUND</shi></sb></ref> <shi>-202</shi></category-title>
<subtext><text>FFmpeg is not found in the system.</text></subtext>
<category-title><ref><sb><shi language="c">#NTG_SHELL_ERROR</shi></sb></ref> <shi>-203</shi></category-title>
<subtext><text>An error occurred while executing a shell command.</text></subtext>
</option>
<option id="SHELL_EXCEPTION">
<category-title>exception <ref>ntgcalls.<sb>ShellError</sb></ref></category-title>
<subtext><text>Error while executing the shell script.</text></subtext>
</option>
<option id="NTG_STREAM_EXCEPTIONS">
<category-title>exception <ref>ntgcalls.<sb>InvalidParams</sb></ref></category-title>
<subtext><text>This error occurs when attempting to send an invalid MediaSource.</text></subtext>
<category-title>exception <ref>ntgcalls.<sb>FileError</sb></ref></category-title>
<config id="FILE_EXCEPTION_DESC"/>
<config id="SHELL_EXCEPTION"/>
</option>
<option id="FFMPEG_EXCEPTION">
<category-title>exception <ref>ntgcalls.<sb>FFmpegError</sb></ref></category-title>
<subtext><text>To use Piped input stream, make sure you have FFmpeg installed.</text></subtext>
</option>
<option id="STREAM_EXCEPTIONS">
<category-title>exception <ref><sb>FileNotFoundError</sb></ref></category-title>
<config id="FILE_EXCEPTION_DESC"/>
<config id="FFMPEG_EXCEPTION"/>
<config id="SHELL_EXCEPTION"/>
<category-title>exception <ref>pytgcalls.exceptions.<sb>NoAudioSourceFound</sb></ref></category-title>
<subtext><text>The audio file you're trying to play has no audio.</text></subtext>
<category-title>exception <ref>pytgcalls.exceptions.<sb>NoVideoSourceFound</sb></ref></category-title>
<subtext><text>The video file you're trying to play has no video.</text></subtext>
<category-title>exception <ref>pytgcalls.exceptions.<sb>InvalidVideoProportion</sb></ref></category-title>
<subtext><text>Playing a video with incorrect proportions is not supported.</text></subtext>
<category-title>exception <ref>pytgcalls.exceptions.<sb>YtDlpError</sb></ref></category-title>
<subtext><text>This error occurs when yt-dlp encounters an error.</text></subtext>
</option>
<option id="GROUPCALL_NOT_FOUND_EXCEPTION">
<category-title>exception <ref>pytgcalls.exceptions.<sb>GroupCallNotFound</sb></ref></category-title>
<config id="NO_GROUP_CALL_EXCEPTION_DESC"/>
</option>
<option id="TELEGRAM_EXCEPTION">
<category-title>exception <ref>ntgcalls.<sb>TelegramServerError</sb></ref></category-title>
<subtext>
<text>
This error occurs when the connection between Telegram and the WebRTC service fails.
</text>
</subtext>
</option>
<option id="TRANSPORT_EXCEPTION">
<category-title>exception <ref>ntgcalls.<sb>TransportParseException</sb></ref></category-title>
<subtext><text>This error occurs when attempting to send invalid Transports.</text></subtext>
</option>
<option id="CONNECTION_NOT_FOUND_EXCEPTION">
<category-title>exception <ref>ntgcalls.<sb>ConnectionNotFound</sb></ref></category-title>
<config id="CONNECTION_NOT_FOUND_DESC"/>
</option>
<option id="CALL_EXCEPTIONS">
<category-title>exception <ref>pytgcalls.exceptions.<sb>CallDeclined</sb></ref></category-title>
<subtext><text>The call was declined by the user.</text></subtext>
<category-title>exception <ref>pytgcalls.exceptions.<sb>CallBusy</sb></ref></category-title>
<subtext><text>When the user is already in a call.</text></subtext>
<category-title>exception <ref>pytgcalls.exceptions.<sb>CallDiscarded</sb></ref></category-title>
<subtext><text>The call was discarded by the user while connecting.</text></subtext>
<config id="TELEGRAM_EXCEPTION"/>
</option>
<option id="RUNNING_EXCEPTION">
<category-title>exception <ref>pytgcalls.exceptions.<sb>PyTgCallsAlreadyRunning</sb></ref></category-title>
<subtext><text>This error occurs when attempting to start a client that is already running.</text></subtext>
</option>
<option id="CRYPTO_ERROR_C">
<category-title><ref><sb><shi language="c">#NTG_CRYPTO_ERROR</shi></sb></ref> <shi>-102</shi></category-title>
<subtext><config id="CRYPTO_ERROR_DESC"/></subtext>
</option>
<option id="INVALID_TRANSPORT_C">
<category-title><ref><sb><shi language="c">#NTG_INVALID_TRANSPORT</shi></sb></ref> <shi>-301</shi></category-title>
<subtext><text>The specified transport is invalid.</text></subtext>
</option>
<option id="CRYPTO_ERROR">
<category-title>exception <ref>ntgcalls.<sb>CryptoError</sb></ref></category-title>
<subtext><config id="CRYPTO_ERROR_DESC"/></subtext>
</option>
<option id="P2P_CONN_ERROR">
<category-title>exception <ref>ntgcalls.<sb>ConnectionError</sb></ref></category-title>
<subtext><text>A connection with the specified ID is already established or does not exist.</text></subtext>
</option>
<option id="CONN_ALREADY_EXISTS_C">
<category-title><ref><sb><shi language="c">#NTG_CONNECTION_ALREADY_EXISTS</shi></sb></ref> <shi>-100</shi></category-title>
<subtext><text>A connection with the specified ID already exists.</text></subtext>
</option>
<option id="RTMP_STREAMING_UNSUPPORTED">
<category-title>exception <ref>ntgcalls.<sb>RTMPStreamingUnsupported</sb></ref></category-title>
<config id="RTMP_STREAMING_UNSUPPORTED_DESC"/>
</option>
<option id="RTMP_STREAMING_UNSUPPORTED_C">
<category-title><ref><sb><shi language="c">#NTG_ERROR_RTMP_STREAMING_UNSUPPORTED</shi></sb></ref> <shi>-300</shi></category-title>
<config id="RTMP_STREAMING_UNSUPPORTED_DESC"/>
</option>
<option id="BROADCAST_EXCEPTIONS">
<category-title>exception <ref>ntgcalls.<sb>RTCException</sb></ref></category-title>
<config id="MTPROTO_CONNECTION_NOT_INITIALIZED_DESC"/>
</option>
<option id="BROADCAST_EXCEPTIONS_C">
<category-title><ref><sb><shi language="c">#NTG_ERROR_WEBRTC</shi></sb></ref> <shi>-304</shi></category-title>
<config id="MTPROTO_CONNECTION_NOT_INITIALIZED_DESC"/>
</option>
<!--end exceptions-->
<!--descriptions-->
<option id="CHANGE_STREAM_DESC">
<text>This method allows changing the streaming file in a Group Call.</text>
</option>
<option id="CHANGE_STREAM_DESC_2">
<text>Change the streaming file.</text>
</option>
<option id="TIME_DESC">
<text>This method allows getting the played time of the stream.</text>
</option>
<option id="TIME_DESC_2">
<text>Get the played time of the stream</text>
</option>
<option id="LIST_CALLS_DESC">
<subtext><text>Get a list of all calls.</text></subtext>
</option>
<option id="AUDIO_CONFIG_DESC">
<text>Stream’s Audio Configuration</text>
</option>
<option id="AUDIO_SAMPLE_DESC">
<subtext><text>Audio sample rate (0-96000, max allowed by PCM16L).</text></subtext>
</option>
<option id="AUDIO_CHAN_DESC">
<subtext><text>Audio channel count (1-2, max allowed by PCM16L).</text></subtext>
</option>
<option id="VIDEO_CONFIG_DESC">
<text>Stream’s Video Configuration</text>
</option>
<option id="VIDEO_FPS_DESC">
<subtext><text>Frames per second (FPS) for video playback.</text></subtext>
</option>
<option id="KEEP_OPEN_DESC">
<subtext><text>If set to true, the stream will be kept open and changes are detected automatically when the input differs from the previous one, otherwise if set to false, the stream change is always forced.</text></subtext>
</option>
<option id="FILE_EXCEPTION_DESC">
<subtext><text>The specified file does not exist.</text></subtext>
</option>
<option id="NO_GROUP_CALL_EXCEPTION_DESC">
<subtext><text>This error occurs when attempting to access a group call that does not exist.</text></subtext>
</option>
<option id="ARG_AUDIO_PARAMS_DESC">
<subtext>
<text>
Stream’s audio parameters.
</text>
</subtext>
</option>
<option id="ARG_VIDEO_PARAMS_DESC">
<subtext>
<text>
Stream’s video parameters.
</text>
</subtext>
</option>
<option id="CONNECT_DESC">
<text>
This method allows connecting to Telegram Group Calls with the output params from Telegram method
<a href="https://core.telegram.org/method/phone.joinGroupCall">JoinGroupCall</a>.
</text>
</option>
<option id="CONNECT_DESC2">
<text>Set connection params for WebRTC obtained from Telegram.</text>
</option>
<option id="CREATE_DESC">
<text>This method allows getting connection params for Telegram WebRTC connection.</text>
</option>
<option id="CREATE_DESC2">
<text>Get connection params for Telegram.</text>
</option>
<option id="STOP_DESC">
<text>This method allow stopping a WebRTC connection.</text>
</option>
<option id="STOP_DESC2">
<text>Stop a WebRTC connection.</text>
</option>
<option id="MUTE_DESC">
<text>This method allows you to mute the WebRTC stream.</text>
</option>
<option id="MUTE_DESC2">
<text>Mute the WebRTC stream.</text>
</option>
<option id="UNMUTE_DESC">
<text>This method allows you to unmute the WebRTC stream.</text>
</option>
<option id="UNMUTE_DESC2">
<text>UnMute the WebRTC stream.</text>
</option>
<option id="PAUSE_DESC">
<text>This method allows you to pause the WebRTC stream.</text>
</option>
<option id="PAUSE_DESC2">
<text>Pause the WebRTC stream.</text>
</option>
<option id="RESUME_DESC">
<text>This method allows you to resume the WebRTC stream.</text>
</option>
<option id="RESUME_DESC2">
<text>Resume the WebRTC stream.</text>
</option>
<option id="CHAT_ID_DESC">
<subtext><text>Unique identifier of a chat.</text></subtext>
</option>
<option id="TG_PARAMS_DESC">
<subtext><text>Connection params obtained from Telegram.</text></subtext>
</option>
<option id="ARG_MEDIA_DESC">
<subtext><text>Media parameters of the stream.</text></subtext>
</option>
<option id="MEDIA_SOURCE_DESC">
<subtext><text>The input mode for audio or video.</text></subtext>
</option>
<option id="ARG_INPUT_MEDIA_DESC">
<subtext><text>The input media source.</text></subtext>
</option>
<option id="VIDEO_WIDTH_DESC">
<subtext><text>Video width in pixels.</text></subtext>
</option>
<option id="VIDEO_HEIGHT_DESC">
<subtext><text>Video height in pixels.</text></subtext>
</option>
<option id="MEDIA_DESC">
<text>Media Configuration for the Stream.</text>
</option>
<option id="MICROPHONE_DESC">
<subtext><text>Microphone configuration for the stream.</text></subtext>
</option>
<option id="SPEAKER_DESC">
<subtext><text>Speaker configuration for the stream.</text></subtext>
</option>
<option id="CAMERA_DESC">
<subtext><text>Camera configuration for the stream.</text></subtext>
</option>
<option id="SCREEN_DESC">
<subtext><text>Screen configuration for the stream.</text></subtext>
</option>
<option id="MEDIA_STATE_DESC">
<text>GroupCall MTProto Configurations.</text>
</option>
<option id="MEDIA_MUTED_DESC">
<subtext><text>Indicates whether the media stream is muted.</text></subtext>
</option>
<option id="MEDIA_PAUSED_DESC">
<subtext><text>Indicates whether the video stream is paused.</text></subtext>
</option>
<option id="MEDIA_STOPPED_DESC">
<subtext><text>Indicates whether the video stream is stopped.</text></subtext>
</option>
<option id="INPUT_MODE_DESC2">
<text>Enumeration of input modes for audio and video streams.</text>
</option>
<option id="MODE_FILE_DESC">
<subtext><text>Input mode using a file source.</text></subtext>
</option>
<option id="MODE_SHELL_DESC">
<subtext><text>Input mode using a shell command.</text></subtext>
</option>
<option id="MODE_FFMPEG_DESC">
<subtext><text>Input mode using FFmpeg.</text></subtext>
</option>
<option id="MODE_DEVICE_DESC">
<subtext><text>Input mode using a device source.</text></subtext>
</option>
<option id="MODE_DESKTOP_DESC">
<subtext><text>Input mode using a desktop source.</text></subtext>
</option>
<option id="MODE_EXTERNAL_DESC">
<subtext><text>Input mode using an external source.</text></subtext>
</option>
<option id="STREAM_DEVICE_DESC">
<text>Enumeration of stream device values.</text>
</option>
<option id="STREAM_DEVICE_DESC2">
<subtext><text>Stream’s Device.</text></subtext>
</option>
<option id="STREAM_DEVICE_MICROPHONE_DESC">
<subtext><text>Input mode using a microphone source.</text></subtext>
</option>
<option id="STREAM_DEVICE_SPEAKER_DESC">
<subtext><text>Input mode using a speaker source.</text></subtext>
</option>
<option id="STREAM_DEVICE_CAMERA_DESC">
<subtext><text>Input mode using a camera source.</text></subtext>
</option>
<option id="STREAM_DEVICE_SCREEN_DESC">
<subtext><text>Input mode using a screen source.</text></subtext>
</option>
<option id="DEVICE_INFO_DESC">
<text>Device Information.</text>
</option>
<option id="DEVICE_NAME_DESC">
<subtext><text>Device name.</text></subtext>
</option>
<option id="DEVICE_METADATA_DESC">
<subtext><text>Device metadata, such as the device ID.</text></subtext>
</option>
<option id="SSRC_GROUP_DESC">
<text>SSRC Group with the SSRCs of the video stream and the semantics.</text>
</option>
<option id="SSRC_GROUP_SEMANTICS_DESC">
<subtext><text>Enumeration of SSRC group semantics values.</text></subtext>
</option>
<option id="SSRC_GROUP_SSRCS_DESC">
<subtext><text>SSRC Group.</text></subtext>
</option>
<option id="STREAM_STATUS_DESC">
<text>Enumeration of stream status values.</text>
</option>
<option id="STATUS_PLAYING_DESC">
<subtext><text>Indicates that the stream is currently playing.</text></subtext>
</option>
<option id="STATUS_PAUSED_DESC">
<subtext><text>Indicates that the stream is currently paused.</text></subtext>
</option>
<option id="STATUS_IDLING_DESC">
<subtext><text>Indicates that the stream is currently idling (neither playing nor paused).</text></subtext>
</option>
<option id="STREAM_TYPE_DESC">
<text>Enumeration of stream type values.</text>
</option>
<option id="TYPE_AUDIO_DESC">
<subtext><text>Indicates that the stream type is audio.</text></subtext>
</option>
<option id="TYPE_VIDEO_DESC">
<subtext><text>Indicates that the stream type is video.</text></subtext>
</option>
<option id="CALLBACK_END_DESC">
<text>
Callback for handling when a stream playback ends. When a stream ends, this callback will be triggered.
</text>
</option>
<option id="CALLBACK_UPGRADE_DESC">
<text>
Callback for handling when is needed to update GroupCall MTProto Configurations.
</text>
</option>
<option id="CALLBACK_CONN_CHANGE_DESC">
<text>
Callback to listen for when the WebRTC connection has changed his state.
</text>
</option>
<option id="CALLBACK_SIGNALING_DESC">
<text>
Callback for handling when a signaling message is received.
</text>
</option>
<option id="CALLBACK_FRAMES_DESC">
<text>
Callback for handling when a group of frames is received.
</text>
</option>
<option id="CALLBACK_REMOTE_SOURCE_DESC">
<text>
Callback for handling when the remote source changes.
</text>
</option>
<option id="CALLBACK_REQUEST_BROADCAST_PART_DESC">
<text>
Callback for handling when a broadcast stream part is being requested.
</text>
</option>
<option id="CALLBACK_REQUEST_BROADCAST_TIME_DESC">
<text>
Callback for handling when the broadcast timestamp is being requested.
</text>
</option>
<option id="GET_STATE_DESC">
<text>
This method allows retrieving GroupCall MTProto Configurations for
<a href="https://core.telegram.org/method/phone.editGroupCallParticipant">EditGroupCallParticipant</a>.
</text>
</option>
<option id="GET_STATE_DESC2">
<text>
Retrieve GroupCall MTProto Configurations.
</text>
</option>
<option id="STREAM_STATUS_DESC2">
<subtext><text>Stream’s Status.</text></subtext>
</option>
<option id="BUG_FIX_CHANGELOGS">
<item><text><b>Bug Fixes:</b> Addressed various bugs for a more stable experience.</text></item>
</option>
<option id="CREATE_P2P_DESC">
<text>
This method allows creating a Private Call connection that can be used to exchange keys and connect
</text>
</option>
<option id="CREATE_P2P_DESC2">
<text>Create a connection for a Private Call.</text>
</option>
<option id="INIT_EXCHANGE_DESC">
<text>
This method allows initializing a Private Call connection that can be used to exchange keys and connect with the output params from
<a href="https://core.telegram.org/method/messages.getDhConfig">GetDhConfig</a> and <a href="https://core.telegram.org/constructor/phoneCallRequested">PhoneCallRequested</a> when is an incoming call
and then use the output params for <a href="https://core.telegram.org/method/phone.acceptCall">AcceptCall</a> (When is an incoming call) or <a href="https://core.telegram.org/method/phone.requestCall">RequestCall</a> with <a href="https://core.telegram.org/constructor/phoneCallProtocol">Protocol</a>.
</text>
</option>
<option id="INIT_EXCHANGE_DESC2">
<text>Initialize a connection for a Private Call.</text>
</option>
<option id="EXCHANGE_KEYS_DESC">
<text>
This method allows exchanging keys for a Private Call connection with the output params from
<a href="https://core.telegram.org/constructor/phoneCallAccepted">PhoneCallAccepted</a> when is an outgoing call or <a href="https://core.telegram.org/constructor/phoneCall">PhoneCall</a> when is an incoming call.
</text>
</option>
<option id="EXCHANGE_KEYS_DESC2">
<text>Exchange keys for a Private Call connection.</text>
</option>
<option id="DH_CONFIG_DESC">
<text>Diffie-Hellman configuration for key exchange.</text>
</option>
<option id="G_DESC">
<subtext><text>New value prime, see <a href="https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange">Wikipedia</a>.</text></subtext>
</option>
<option id="P_DESC">
<subtext><text>New value primitive root, see <a href="https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange">Wikipedia</a>.</text></subtext>
</option>
<option id="R_DESC">
<subtext><text>Random sequence of bytes of assigned length.</text></subtext>
</option>
<option id="G_A_HASH_DESC">
<subtext><text>Parameter for key exchange (Only when is incoming call).</text></subtext>
</option>
<option id="G_A_OR_B_DESC">
<subtext><text>Parameter for key exchange.</text></subtext>
</option>
<option id="FINGERPRINT_DESC">
<subtext><text>Fingerprint for the connection (Optional when is an outgoing call).</text></subtext>
</option>
<option id="KEY_FINGERPRINT_DESC">
<text>Fingerprint for the connection.</text>
</option>
<option id="AUTH_PARAMS_DESC">
<text>Authentication parameters for the connection.</text>
</option>
<option id="CONNECT_P2P_DESC">
<text>
This method allows connecting to a Private Call with the output params from Telegram method
<a href="https://core.telegram.org/method/phone.confirmCall">ConfirmCall</a> when is an outgoing call or <a href="https://core.telegram.org/constructor/phoneCall">PhoneCall</a> when is an incoming call.
</text>
</option>
<option id="CONNECT_P2P_DESC2">
<text>Set connection params for a Private Call obtained from Telegram.</text>
</option>
<option id="RTC_SERVERS_DESC">
<subtext><text>List of endpoints the user can connect to exchange call data.</text></subtext>
</option>
<option id="RTC_SERVER_DESC">
<text>Identifies an endpoint that can be used to connect to the other user in a phone call.</text>
</option>
<option id="GET_PROTOCOL_DESC">
<text>
This method allows getting the protocol for a Private Call connection with the output params for Telegram constructor
<a href="https://core.telegram.org/constructor/phoneCallProtocol">PhoneCallProtocol</a>.
</text>
</option>
<option id="GET_PROTOCOL_DESC2">
<text>Get the protocol for a Private Call connection.</text>
</option>
<option id="GET_MEDIA_DEVICES_DESC">
<text>
This method allows getting all the available media devices, such as microphones and cameras.
</text>
</option>
<option id="GET_MEDIA_DEVICES_DESC2">
<text>Get all the available media devices.</text>
</option>
<option id="ENABLE_GLIB_LOOP_DESC">
<text>Enable the GLib main loop to allow the library to use it for PipeWire on OSes that uses Wayland.</text>
</option>
<option id="ENABLE_GLIB_LOOP_DESC2">
<text>Enable the GLib main loop.</text>
</option>
<option id="ENABLE_OR_DISABLE_GLIB_DESC">
<subtext><text>Enable or disable the GLib main loop.</text></subtext>
</option>
<option id="ENABLE_OR_DISABLE_H264_DESC">
<subtext><text>Enable or disable the H264 encoder.</text></subtext>
</option>
<option id="IS_PRESENTATION_DESC">
<subtext><text>Whether the connection is for a presentation.</text></subtext>
</option>
<option id="INIT_PRESENTATION_DESC">
<text>
This method allows initializing a presentation connection, which is a connection for sharing the screen.
</text>
</option>
<option id="INIT_PRESENTATION_DESC2">
<text>Initialize a presentation connection.</text>
</option>
<option id="ADD_INCOMING_VIDEO_DESC">
<text>
This method allows to notify the library that an incoming video stream is available.
</text>
</option>
<option id="ADD_INCOMING_VIDEO_DESC2">
<text>Notify the library that an incoming video stream is available.</text>
</option>
<option id="ENDPOINT_DESC">
<subtext><text>Endpoint ID</text></subtext>
</option>
<option id="SSRC_GROUPS_DESC">
<subtext><text>SSRC groups for the video stream.</text></subtext>
</option>
<option id="REMOVE_INCOMING_VIDEO_DESC">
<text>
This method allows to notify the library that an incoming video stream is no longer available.
</text>
</option>
<option id="REMOVE_INCOMING_VIDEO_DESC2">
<text>Notify the library that an incoming video stream is no longer available.</text>
</option>
<option id="STOP_PRESENTATION_DESC">
<text>
This method allows stopping the presentation connection.
</text>
</option>
<option id="STOP_PRESENTATION_DESC2">
<text>Stop the presentation connection.</text>
</option>
<option id="STREAM_MODE">
<category-title><ref><sb>direction</sb></ref>: <docs-ref link="/NTgCalls/Available Enums/StreamMode">ntgcalls.StreamMode</docs-ref></category-title>
<config id="STREAM_MODE_DESC"/>
</option>
<option id="NTG_STREAM_MODE">
<category-title><docs-ref link="/NTgCalls/Available Enums/ntg_stream_mode_enum">ntg_stream_mode_enum</docs-ref> <ref><sb>streamMode</sb></ref></category-title>
<config id="STREAM_MODE_DESC"/>
</option>
<option id="SEND_EXTERNAL_FRAME_DESC">
<text>
This method allows sending an external audio or video frame to the WebRTC connection.
</text>
</option>
<option id="SEND_EXTERNAL_FRAME_DESC2">
<text>Send an external audio or video frame to the WebRTC connection.</text>
</option>
<option id="SKIP_EXCHANGE_DESC">
<text>
This method allows skipping the exchange of keys for a Private Call connection by using the encryption key already exchanged.
</text>
</option>
<option id="SKIP_EXCHANGE_DESC2">
<text>Skip the exchange of keys for a Private Call connection.</text>
</option>
<option id="ENCRYPTION_KEY_DESC">
<subtext><text>Encryption key for the connection.</text></subtext>
</option>
<option id="IS_OUTGOING_DESC">
<subtext><text>Whether the call is outgoing.</text></subtext>
</option>
<option id="NOTE_CALLBACK">
<alert type="note">
When registering callbacks, keep in mind that each registration replaces the previously set callback.
</alert>
</option>
<option id="STREAM_MODE_DESC">
<subtext><text>Stream direction for the stream.</text></subtext>
</option>
<option id="MODE_CAPTURE_DESC">
<subtext><text>Direction for sending the stream.</text></subtext>
</option>
<option id="MODE_PLAYBACK_DESC">
<subtext><text>Direction for receiving the stream.</text></subtext>
</option>
<option id="CONNECTION_KIND_DESC">
<text>Kind of connection.</text>
</option>
<option id="CONNECTION_KIND_NORMAL_DESC">
<subtext><text>Normal connection for the camera and microphone.</text></subtext>
</option>
<option id="CONNECTION_KIND_PRESENTATION_DESC">
<subtext><text>Presentation connection for sharing the screen and system audio.</text></subtext>
</option>
<option id="FRAME_DESC">
<text>Frame descriptor for the media stream.</text>
</option>
<option id="SSRC_DESC">
<subtext><text>SSRC of the frame.</text></subtext>
</option>
<option id="FRAME_DATA_DESC">
<text>Frame data for the media stream.</text>
</option>
<option id="FRAME_DATA_ABSOLUTE_CAPTURE_TIMESTAMP_MS_DESC">
<subtext><text>Absolute capture timestamp in milliseconds.</text></subtext>
</option>
<option id="FRAME_DATA_ROTATION_DESC">
<subtext><text>Rotation of the video frame.</text></subtext>
</option>
<option id="FRAME_DATA_WIDTH_DESC">
<subtext><text>Width of the video frame.</text></subtext>
</option>
<option id="FRAME_DATA_HEIGHT_DESC">
<subtext><text>Height of the video frame.</text></subtext>
</option>
<option id="MEDIA_DEVICES_DESC">
<text>Media devices available for streaming.</text>
</option>
<option id="MICROPHONE_DEVICES_DESC">
<subtext><text>List of available microphones.</text></subtext>
</option>
<option id="SPEAKER_DEVICES_DESC">
<subtext><text>List of available speakers.</text></subtext>
</option>
<option id="CAMERA_DEVICES_DESC">
<subtext><text>List of available cameras.</text></subtext>
</option>
<option id="SCREEN_DEVICES_DESC">
<subtext><text>List of available screens.</text></subtext>
</option>
<option id="CALL_INFO_DESC">
<text>Call Descriptor for a Group Call or Private Call.</text>
</option>
<option id="PLAYBACK_DESC">
<subtext><text>Playback stream status.</text></subtext>
</option>
<option id="CAPTURE_DESC">
<subtext><text>Capture stream status.</text></subtext>
</option>
<option id="NETWORK_DESC">
<text>Network status for the call.</text>
</option>
<option id="CONNECTION_STATE_DESC2">
<subtext><text>Connection state for the call.</text></subtext>
</option>
<option id="REMOTE_SOURCE_DESC">
<text>Remote source for the call.</text>
</option>
<option id="CONNECTION_ALREADY_EXCHANGE_DESC">
<subtext><text>When the exchange was already initialized.</text></subtext>
</option>
<option id="CONNECTION_ALREADY_ESTABLISHED_DESC">
<subtext><text>When the connection was already established or the key already exchanged.</text></subtext>
</option>
<option id="CALL_CONFIG_DESC">
<category-title><ref>config</ref>: Optional[Union[<docs-ref link="/PyTgCalls/Advanced Types/CallConfig">CallConfig</docs-ref>, <docs-ref link="/PyTgCalls/Advanced Types/GroupCallConfig">GroupCallConfig</docs-ref>]]</category-title>
<subtext><text>Additional configuration for the call.</text></subtext>
</option>
<option id="PROTOCOL_DESC">
<text>Protocol for a Private Call connection.</text>
</option>
<option id="MIN_LAYER_DESC">
<subtext><text>Minimum layer for remote connection.</text></subtext>
</option>
<option id="MAX_LAYER_DESC">
<subtext><text>Maximum layer for remote connection.</text></subtext>
</option>
<option id="UDP_P2P_DESC">
<subtext><text>Whether to allow P2P connection to the other participant.</text></subtext>
</option>
<option id="UDP_REFLECTOR_DESC">
<subtext><text>Whether to allow connection to the other participants through the reflector servers.</text></subtext>
</option>
<option id="LIBRARY_VERSIONS_DESC">
<subtext>
<text>
When using <a href="https://core.telegram.org/method/phone.requestCall">RequestCall</a> and <a href="https://core.telegram.org/method/phone.acceptCall">AcceptCall</a>,
specify all library versions supported by the client.
The server will merge and choose the best library version supported by both peers, returning only the best
value in the result of the call's <a href="https://core.telegram.org/method/phone.acceptCall">AcceptCall</a> and in the <a href="https://core.telegram.org/constructor/phoneCallAccepted">PhoneCallAccepted</a> update received by the caller.
</text>
</subtext>
</option>
<option id="DEVICE_DESC">
<subtext><text>Device Kind</text></subtext>
</option>
<option id="FRAME_BUFFER_DESC">
<subtext><text>Frame buffer</text></subtext>
</option>
<option id="P2P_ALLOWED_DESC">
<subtext><text>Whether to allow P2P connection to the other participant.</text></subtext>
</option>
<option id="SEND_SIGNALING_DATA_DESC">
<text>
This method allows sending signaling data to the WebRTC connection.
</text>
</option>
<option id="SEND_SIGNALING_DATA_DESC2">
<text>Send signaling data to the WebRTC connection.</text>
</option>
<option id="SIGNALING_DATA_DESC">
<text>Signaling payload.</text>
</option>
<option id="CPU_USAGE_DESC">
<text>Get an estimate of the CPU usage of the current process.</text>
</option>
<option id="CPU_USAGE_DESC2">
<text>Get the CPU usage of the current process.</text>
</option>
<option id="CPU_USAGE_DESC3">
<text>Buffer to store the CPU usage.</text>
</option>
<option id="REGISTER_LOGGER_DESC">
<text>Register a logger for the library, this logger will be used for all instances.</text>
</option>
<option id="LOGGER_DESC">
<text>Callback for logging messages.</text>
</option>
<option id="LOG_MESSAGE_STRUCT_DESC">
<text>Log message structure.</text>
</option>
<option id="LOG_LEVEL_DESC">
<text>Log level.</text>
</option>
<option id="LOG_SOURCE_DESC">
<text>Log source.</text>
</option>
<option id="LOG_FILE_DESC">
<text>File name where the log was generated.</text>
</option>
<option id="LOG_LINE_DESC">
<text>Line number where the log was generated.</text>
</option>
<option id="LOG_MESSAGE_DESC">
<text>Log message.</text>
</option>
<option id="NTG_LOG_DEBUG_DESC">
<text>Debug log level.</text>
</option>