Skip to main content

Update a bot template

import botfleet

botfleet.api_key = "YOUR_API_KEY"

botfleet.BotTemplate.update(
id="15d19ca3-26f1-4adb-9cea-3955b73d9b4e",
name="Updated name",
description="Updated description",
script="def main(request, store):\n return 'Hello!'",
requirements="requests==2.31.0",
env_vars="FOO=bar",
python_version="3.10",
public=False,
)

The following fields can be updated: name, description, script, requirements, env_vars, python_version, public.

Returns a BotTemplate object.