MarshalX / tgcalls

Voice chats, private incoming and outgoing calls in Telegram for Developers
https://t.me/tgcallslib
GNU Lesser General Public License v3.0
514 stars 91 forks source link

dpor from livestream #175

Open w1ld32 opened 2 years ago

w1ld32 commented 2 years ago

hi, I am trying to connect to a group call of the channel, and if the connection does not take place via a link for the speaker, then the client falls off the call without errors, simply disappears from the list of participants.

group_call_factory = GroupCallFactory(self.client, GroupCallFactory.MTPROTO_CLIENT_TYPE.TELETHON, outgoing_audio_bitrate_kbit=64, enable_logs_to_console=False)
group_call = group_call_factory.get_file_group_call('input.raw')

if not group_call.is_connected:
   link = 'https://t.me/AFVTope_news?livestream=a7423d4ab11bb86bc5' # or link = 'https://t.me/AFVTope_news'
   group = 'https://t.me/AFVTope_news'
   access_hash= 'a7423d4ab11bb86bc5'
   if ('livestream' in link):
      await group_call.start(group, invite_hash=access_hash)   # <- this works but i need client without the possibility of conversation 
      print(group_call.is_connected) #True
   else:
      await group_call.start(group) # <- this droped from call through 40-50 sec
      print(group_call.is_connected) # False but 40-50 sec this client online in groupcall