py-tgcalls 2.0.3b2__py3-none-any.whl → 2.0.3b3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: py-tgcalls
3
- Version: 2.0.3b2
3
+ Version: 2.0.3b3
4
4
  Summary: Async client API for the Telegram Calls.
5
5
  Author-email: Laky-64 <iraci.matteo@gmail.com>
6
6
  License: GNU LESSER GENERAL PUBLIC LICENSE
@@ -187,7 +187,7 @@ Requires-Python: >=3.8
187
187
  Description-Content-Type: text/markdown
188
188
  License-File: LICENSE
189
189
  Requires-Dist: aiohttp>=3.9.3
190
- Requires-Dist: ntgcalls>=1.2.1
190
+ Requires-Dist: ntgcalls>=1.2.2b2
191
191
  Requires-Dist: psutil
192
192
  Requires-Dist: screeninfo
193
193
  Requires-Dist: deprecation
@@ -1,5 +1,5 @@
1
1
  pytgcalls/__init__.py,sha256=TfZGf1enqqs50mBB406vygB6zYgn3vAjBYFUDO4Pviw,248
2
- pytgcalls/__version__.py,sha256=eg2CdfdgTsNoAoLtDEA6kF7pckBz7cJJhwd5MnKauQQ,24
2
+ pytgcalls/__version__.py,sha256=DmnqMG7HeKTwipmMjGruO4dd-Tz35t6HDS28QU3GBaY,24
3
3
  pytgcalls/environment.py,sha256=ctCHACvG6l8SdpPewSBhOvc70kbwpv18maC0TwLvZ08,1924
4
4
  pytgcalls/exceptions.py,sha256=0MmAktc53ajYAc7ThjD2tJ9PDyibUi0iHZMfUy2IoKs,4109
5
5
  pytgcalls/ffmpeg.py,sha256=_EuRZek1S-ZvQEO35562VuU1RtH0OmqmHf-hcVB3CKI,8640
@@ -49,10 +49,10 @@ pytgcalls/methods/utilities/stream_params.py,sha256=hYcNxx__McmPeHgOUDEuNcN7ThgD
49
49
  pytgcalls/mtproto/__init__.py,sha256=X4zvzFG7km7qHyE0fdvA550WcOVO_xl_p__gvIfDGmw,130
50
50
  pytgcalls/mtproto/bridged_client.py,sha256=kK22n-CKjtfmtNE6bXCpuL6kWAUK2_Ul7cGgx_HNuHQ,4975
51
51
  pytgcalls/mtproto/client_cache.py,sha256=1yA5CFAmWZUsWdpqk5vlaN3j1RV1rIN-X7EcqmsnlfY,5087
52
- pytgcalls/mtproto/hydrogram_client.py,sha256=iSqwvK8yZZCYMmFQOSXpcDwZOFrBGt-3vJUMyxar-Sc,21116
52
+ pytgcalls/mtproto/hydrogram_client.py,sha256=zi3kPeP_L8mxVa7iRYur7w7xfdQ_tqTahIQ7ie3dLVc,21282
53
53
  pytgcalls/mtproto/mtproto_client.py,sha256=LO71RqgxZ3bYxSFb6l9cc4ks6_peyqHN4i_z478c7yw,6883
54
- pytgcalls/mtproto/pyrogram_client.py,sha256=iyJMJo6iTULfmGh-jdfJgu8DNVFxzOn28A5_E7uH4-Q,21305
55
- pytgcalls/mtproto/telethon_client.py,sha256=8BkYncXnPUIJRgrhUBnMIlXV2_fm6vLkN8URVaSuow4,20207
54
+ pytgcalls/mtproto/pyrogram_client.py,sha256=lAXWNI9IxX4P1A9VP0HQ12ZbgkjEnLfxX9nmdiOWDuY,21471
55
+ pytgcalls/mtproto/telethon_client.py,sha256=j2Ybibhg67IL8M2LXBWXIJwpc6dTDMz5_9MRYsOVcuw,20373
56
56
  pytgcalls/types/__init__.py,sha256=yJVJZoH9M9u9VgpZGUX-MF4NzE-vKp4KrId21YQbcGE,910
57
57
  pytgcalls/types/browsers.py,sha256=47Kr5q96n4Q4WvVhA6IUlS2egEcA9GRLlDeFcQYyc9M,9545
58
58
  pytgcalls/types/cache.py,sha256=FfsOcmYnsBGPlJoTPIXXYcUSpGE3rhx6cjIH77hyUL0,1059
@@ -86,8 +86,8 @@ pytgcalls/types/stream/media_stream.py,sha256=opMsQX7_XcUGrp_1b1xcYsojej8WSSdPpM
86
86
  pytgcalls/types/stream/stream_audio_ended.py,sha256=2_EFa98F0vWu0d0jBmLtzp4NH_xBkDO_6yP9UtyKuCs,164
87
87
  pytgcalls/types/stream/stream_video_ended.py,sha256=9YFTTZPMDpB95eb815rGtgDrzBGfTeazJ5mZwP6Hvks,164
88
88
  pytgcalls/types/stream/video_quality.py,sha256=HBfWq005kh-D19MaVE9VzVdnODzrXf4IJUimCfslfiU,231
89
- py_tgcalls-2.0.3b2.dist-info/LICENSE,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
90
- py_tgcalls-2.0.3b2.dist-info/METADATA,sha256=T6VtBQq3eF07h549RbPOkOeP4fEQ4LyC2K30gOm_TYo,14351
91
- py_tgcalls-2.0.3b2.dist-info/WHEEL,sha256=HiCZjzuy6Dw0hdX5R3LCFPDmFS4BWl8H-8W39XfmgX4,91
92
- py_tgcalls-2.0.3b2.dist-info/top_level.txt,sha256=IUDUwn0KkcbUYZbCe9R5AUb2Ob-lmllNUGQqyeXXd8A,10
93
- py_tgcalls-2.0.3b2.dist-info/RECORD,,
89
+ py_tgcalls-2.0.3b3.dist-info/LICENSE,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
90
+ py_tgcalls-2.0.3b3.dist-info/METADATA,sha256=qtMJaHSBB8bTqPnOURtxP_qt-6x-xrAZ1SjEdY63Ows,14353
91
+ py_tgcalls-2.0.3b3.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
92
+ py_tgcalls-2.0.3b3.dist-info/top_level.txt,sha256=IUDUwn0KkcbUYZbCe9R5AUb2Ob-lmllNUGQqyeXXd8A,10
93
+ py_tgcalls-2.0.3b3.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (72.2.0)
2
+ Generator: setuptools (74.1.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
pytgcalls/__version__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '2.0.3b2'
1
+ __version__ = '2.0.3b3'
@@ -353,19 +353,24 @@ class HydrogramClient(BridgedClient):
353
353
  self,
354
354
  input_call: InputGroupCall,
355
355
  ) -> List[GroupCallParticipant]:
356
+ participants = []
357
+ next_offset = ''
358
+ while True:
359
+ result = await self._app.invoke(
360
+ GetGroupParticipants(
361
+ call=input_call,
362
+ ids=[],
363
+ sources=[],
364
+ offset=next_offset,
365
+ limit=0,
366
+ ),
367
+ )
368
+ participants.extend(result.participants)
369
+ if not (next_offset := result.next_offset):
370
+ break
356
371
  return [
357
372
  self.parse_participant(participant)
358
- for participant in (
359
- await self._app.invoke(
360
- GetGroupParticipants(
361
- call=input_call,
362
- ids=[],
363
- sources=[],
364
- offset='',
365
- limit=500,
366
- ),
367
- )
368
- ).participants
373
+ for participant in participants
369
374
  ]
370
375
 
371
376
  async def join_group_call(
@@ -361,19 +361,24 @@ class PyrogramClient(BridgedClient):
361
361
  self,
362
362
  input_call: InputGroupCall,
363
363
  ) -> List[GroupCallParticipant]:
364
+ participants = []
365
+ next_offset = ''
366
+ while True:
367
+ result = await self._app.send(
368
+ GetGroupParticipants(
369
+ call=input_call,
370
+ ids=[],
371
+ sources=[],
372
+ offset=next_offset,
373
+ limit=0,
374
+ ),
375
+ )
376
+ participants.extend(result.participants)
377
+ if not (next_offset := result.next_offset):
378
+ break
364
379
  return [
365
380
  self.parse_participant(participant)
366
- for participant in (
367
- await self._app.send(
368
- GetGroupParticipants(
369
- call=input_call,
370
- ids=[],
371
- sources=[],
372
- offset='',
373
- limit=500,
374
- ),
375
- )
376
- ).participants
381
+ for participant in participants
377
382
  ]
378
383
 
379
384
  async def join_group_call(
@@ -330,19 +330,24 @@ class TelethonClient(BridgedClient):
330
330
  self,
331
331
  input_call: InputGroupCall,
332
332
  ) -> List[GroupCallParticipant]:
333
+ participants = []
334
+ next_offset = ''
335
+ while True:
336
+ result = await self._app(
337
+ GetGroupParticipantsRequest(
338
+ call=input_call,
339
+ ids=[],
340
+ sources=[],
341
+ offset=next_offset,
342
+ limit=0,
343
+ ),
344
+ )
345
+ participants.extend(result.participants)
346
+ if not (next_offset := result.next_offset):
347
+ break
333
348
  return [
334
349
  self.parse_participant(participant)
335
- for participant in (
336
- await self._app(
337
- GetGroupParticipantsRequest(
338
- call=input_call,
339
- ids=[],
340
- sources=[],
341
- offset='',
342
- limit=500,
343
- ),
344
- )
345
- ).participants
350
+ for participant in participants
346
351
  ]
347
352
 
348
353
  async def join_group_call(