Scripts


What are scripts?

Scripts contain instructions for Botfather on how to control an application.

Where to get scripts from?

You can either write your own scripts or clone them from GitHub and GitLab.

How to clone a script?

Click the "Clone bots" button in Botfather and paste a Git HTTPS clone URL.

How to update scripts?

Botfather can automatically update scripts cloned from GitHub or GitLab.

How to create a script?

Follow our documentation and draw inspiration from our demo scripts.

Documentation

This script demonstrates how to open browser windows and how to interact with them.

This script demonstrates how to find the position of a reference image in a screenshot. This can be useful if you want to find a specific UI element to click on or otherwise interact with.

This script demonstrates how to use the Config API to display config options in a bot's config tab and how to access these options in the script.

This script demonstrates how to use the Helper API to play a sound file. This can be useful for creating sound notifications.