async def _(): response = await self.client.send( functions.phone.JoinGroupCall( call=self.group_call, params=types.DataJSON(data=json.dumps(params)), muted=True)) await self.client.handle_updates(response)
async def _(): response = await self.client.send(functions.phone.JoinGroupCall( call=self.group_call, params=types.DataJSON(data=json.dumps(params)), muted=True )) await self.client.handle_updates(response) logger.debug(f'Successfully connected to VC with ssrc={self.my_ssrc}.')
async def _(): try: response = await self.client.send( functions.phone.JoinGroupCall( call=self.group_call, join_as=self.join_as, params=types.DataJSON(data=json.dumps(params)), muted=True)) await self.client.handle_updates(response) logger.debug( f'Successfully connected to VC with ssrc={self.my_ssrc} as {type(self.join_as).__name__}.' ) except GroupcallSsrcDuplicateMuch: logger.debug('Reconnect. Duplicate SSRC')
async def join_group_call(self, invite_hash: str, params: str, muted: bool, pre_update_processing: Callable): try: response = await self.client.send( functions.phone.JoinGroupCall( call=self.group_call, join_as=self.join_as, invite_hash=invite_hash, params=types.DataJSON(data=params), muted=muted, ) ) pre_update_processing() await self.client.handle_updates(response) except PyrogramGroupcallSsrcDuplicateMuch as e: raise GroupcallSsrcDuplicateMuch(e.x)