mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-12-27 04:32:49 +00:00
Update 3_advanced.md
This commit is contained in:
parent
38f2cc475b
commit
4b2331b623
@ -75,6 +75,10 @@ You must use the function `user_is_allowed` to check if a user has the capabilit
|
||||
### Interactive Chats
|
||||
Interactive chats are short running scripts, reading user input and echo data to the user.
|
||||
|
||||
**Note**: Inmteractive chats are simple scripts, reading and writing from/to a pipe. It's **not possible** to use bashbot functions adn variables!
|
||||
|
||||
user input sent as TEXT **->** script reads TEXT and print TEXT **->** Text sent to user with [simple formatting]()
|
||||
|
||||
To create a new interactive chat script copy `scripts/interactive.sh.clean` to e.g. `scripts/mynewinteractive.sh`, make it executable
|
||||
and then use `start_proc` function from your bot, it's possible to pass two arguments. You find more examples for interactive scripts in 'examples'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user