Beispiel #1
0
 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)
Beispiel #2
0
 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}.')
Beispiel #3
0
        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')
Beispiel #4
0
    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)