mirror of
https://github.com/danog/telegram-bot-bash.git
synced 2024-11-30 04:29:19 +01:00
Update README.md
This commit is contained in:
parent
905d68a9f3
commit
471819f934
@ -130,7 +130,7 @@ To create interactive chats, write (or edit the question script) a normal bash (
|
||||
The text that the script will output will be sent in real time to the user, and all user input will be sent to the script (as long as it's running or until the user kills it with /cancel).
|
||||
To open up a keyboard in an interactive script, print out the keyboard layout in the following way:
|
||||
```
|
||||
echo "Text that will appear in chat? mykeyboardstartshere Yep No"
|
||||
echo "Text that will appear in chat? mykeyboardstartshere \"Yep, sure\" \"No, highly unlikely\""
|
||||
```
|
||||
Same goes for files:
|
||||
```
|
||||
@ -142,7 +142,7 @@ echo "Text that will appear in chat. mylatstartshere 45 mylongstartshere 45"
|
||||
```
|
||||
You can combine them:
|
||||
```
|
||||
echo "Text that will appear in chat? mykeyboardstartshere Yep No myfilelocationstartshere /home/user/doge.jpg mylatstartshere 45 mylongstartshere 45"
|
||||
echo "Text that will appear in chat? mykeyboardstartshere \"Yep, sure\" \"No, highly unlikely\" myfilelocationstartshere /home/user/doge.jpg mylatstartshere 45 mylongstartshere 45"
|
||||
```
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user