What is SCAPI?

SCAPI (Strawberry Chat API) is the API for, you guessed it, Strawberry Chat. It allows developers to make custom bot for Strawberry Chat.

Supported scapi versions in Strawberry Chat

First of all, you should be aware that Strawberry Chat uses a new communication system as of v1.9.0. Our internal name for this is stbm or Strawberry Communication System.

Find out more about the new communication system

For supported versions, see this chart below

v1.8.0 - v1.8.2 v1.8.3 v1.9.0
Legacy (stbmv1) v1.0.0❌²
Stable (stbmv2) v0.12.0✅ (CM¹)✅ (CM¹)
Stable (stbmv2) >=v0.12.1✅ (CM³)✅ (CM³)

Compatibility Mode (CM)

As of Scapi v0.12.0, we have added a feature that allows bots to connect to old servers. This is called Compatibility Mode. See more

Manual configuration of the compatibility mode is currently only available for Scapi v0.12.1.

¹ Scapi v0.12.0 (stbmv2) does not have manual configuration of the compatibility mode. You must change an argument in Scapi’s source code for the configuration. We therefore recommend to always use the latest available version from our GitHub branch

² Scapi Legacy v1.0.0/v0.11.0 only supports the old, legacy communication system (stbmv1) (Server v1.8.1 or lower). Using v0.11.0 on a newer server (v1.9.0 or higher) will result in broken messages

³ To enable compatibility mode for Strawberry Chat, you need to change the assigned value for json to False. This could look like the following:

Bot = Scapi.Bot(username=username, token=token, host=host, port=port, json=False)

Find out more about the new communication system and how it works with Scapi