- reformatted, I tried to use post_json_api() for bot postings
botheaders = {**headers, **{"Authorization": "Bearer " + config["bot_token"]}}
- req = reqto.post(f"{config['bot_instance']}/api/v1/statuses",
- data={"status":message, "visibility":config['bot_visibility'], "content_type":"text/plain"},
- headers=botheaders, timeout=10).json()
+ req = reqto.post(
+ f"{config['bot_instance']}/api/v1/statuses",
+ data={
+ "status" : message,
+ "visibility" : config['bot_visibility'],
+ "content_type": "text/plain"
+ },
+ headers=botheaders,
+ timeout=10
+ ).json()
return True