mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-11-21 23:25:08 +00:00
Update 3_advanced.md
This commit is contained in:
parent
5653582d68
commit
0c25a11c5c
@ -75,10 +75,10 @@ You must use the function `user_is_allowed` to check if a user has the capabilit
|
|||||||
### Interactive Chats
|
### Interactive Chats
|
||||||
Interactive chats are simple Bash scripts, reading user input as TEXT and output TEXT to the user.
|
Interactive chats are simple Bash scripts, reading user input as TEXT and output TEXT to the user.
|
||||||
|
|
||||||
**Important**: Interactive scripts run in a pipeline, it's **not possible** to use bashbot functions and variables!
|
**Important**: Scripts run as seperate programs in a [pipeline](https://www.geeksforgeeks.org/piping-in-unix-or-linux/), it's **not possible** to use bashbot functions and variables!
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
user input as TEXT | script reads TEXT | output sent to user as formated TEXT (see below)
|
mycommands.sh send user input as TEXT | script reads TEXT | bashbot.sh reads output as formated TEXT (see below)
|
||||||
```
|
```
|
||||||
|
|
||||||
To create a new interactive chat script copy `scripts/interactive.sh.clean` to e.g. `scripts/mynewinteractive.sh`, make it executable
|
To create a new interactive chat script copy `scripts/interactive.sh.clean` to e.g. `scripts/mynewinteractive.sh`, make it executable
|
||||||
|
Loading…
Reference in New Issue
Block a user