Action: Bot state¶
This action allows you to display the bot's current state, such as "typing..." or "sending a photo...". The state will appear at the top of the chat, below the bot's name, simulating human-like interaction.
The state lasts approximately 10 seconds. You can update or cancel it at any time.
What can you do with this action?¶
- Simulate the bot typing, sending content, or performing other activities.
- Cancel an active bot state in progress.
How to create and configure the action?¶
1. Create the action¶
- Go to your bot and click
🛠 Editto enter edit mode. - Select the button or command where you want to add the action, or create a new one.
- Click
Actions 🌟→🎯 New action→🤖 Bot state. - Click
Configure 🛠to set up this action.
2. Select the bot state¶
Choose the state the bot will display to the user. Available options:
- Cancel active status: Stops any ongoing bot state.
- Typing
- Playing
- Sending photo
- Recording video
- Sending video
- Recording voice
- Sending audio
- Sending file
- Selecting location
- Selecting contact
- Recording video note
- Sending video note
- Choosing sticker
3. Activate the action¶
- Click
✅ Activateto enable the action.
What does the action return through its ID?¶
This action does not return any value. You can use it exclusively to control the bot state notifications.