我使用telethon的方法创建了一个公共组,但是当我查看该组的权限时,会设置该组,以便并非每个人都可以邀请其他人加入该组。我如何使用Telethon进行设置,以便任何人都可以邀请其他人加入群组
result = client(CreateChannelRequest(
title='*****',
about='******',
megagroup=True,
broadcast=True
))
updatesDict = result.to_dict()
channelInfo = InputPeerChannel(updatesDict['chats'][0]['id'], updatesDict['chats'][0]['access_hash'])
desiredPublicUsername = "test"
checkUsernameResult = client(CheckUsernameRequest(channelInfo, desiredPublicUsername))
if (checkUsernameResult == True):
publicChannel = client(UpdateUsernameRequest(channelInfo, desiredPublicUsername))
使用上述代码创建的公共组信息为:
Channel(id=***, title='***', photo=ChatPhotoEmpty(), date=datetime.utcfromtimestamp(1554747259), version=0, creator=True, left=False, editor=False, broadcast=False, verified=Fal
se, megagroup=True, restricted=False, democracy=False, signatures=False, min=False, access_hash=***, username='***', restriction_reason=None, admin_rights=None, banne
d_rights=None, participants_count=None)
我希望电视节目将频道中的民主属性设置为True