url = f'https://api.telegram.org/bot{token}/setChatPermissions'
prm = {
'can_send_messages' : True,
'can_send_media_messages' : True,
'can_send_polls' : True,
'can_send_other_messages' : True,
'can_add_web_page_previews' : True,
'can_invite_users' : True
}
payload = {
'chat_id' : chat_id,
'permissions' : prm
}
r = requests.post(url, params = json.dumps(payload))
print(r.text)
print('unlock')