mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-11-25 00:37:34 +00:00
Include
This commit is contained in:
parent
d157f61cf2
commit
d0c3156e7d
@ -81,10 +81,11 @@ and then use `start_proc` function from your bot, it's possible to pass two argu
|
|||||||
**Important**: The script runs standalone in a [pipeline](https://www.geeksforgeeks.org/piping-in-unix-or-linux/), it's **not possible** to use bashbot functions and variables!
|
**Important**: The script runs standalone in a [pipeline](https://www.geeksforgeeks.org/piping-in-unix-or-linux/), it's **not possible** to use bashbot functions and variables!
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
mycommands.sh send user input as TEXT | script reads TEXT | bashbot.sh reads output as formated TEXT (see below)
|
commands.sh send user input as TEXT | script reads TEXT | bashbot.sh recieve output as formated TEXT (see below)
|
||||||
```
|
```
|
||||||
|
|
||||||
In case you want to process any other data then message TEXT I recommend to switch to a more advanced bot framework. In bashbot you must extraxt that information in `mycommnds.sh` and insert in message TEXT before it's sent to the script (only recommended for advanced bash experts).
|
In case you want to process any other data then message TEXT, I recommend to switch to a more advanced bot framework.
|
||||||
|
In Bashbot you are on your own to implement methods for includeíng additional information in message TEXT before message sent to the script (only recommended for advanced bash experts).
|
||||||
|
|
||||||
#### Example script
|
#### Example script
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user