mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2025-02-02 10:28:25 +00:00
add mytextstartshere to doc
This commit is contained in:
parent
3cd6eebdf2
commit
02d9afbb22
@ -93,4 +93,4 @@ Well, thats a damn good question ... may be because I'm an Unix/Linux admin from
|
||||
|
||||
If you feel that there's something missing or if you found a bug, feel free to submit a pull request!
|
||||
|
||||
#### $$VERSION$$ v0.70-pre1-5-g07dc7b4
|
||||
#### $$VERSION$$ v0.70-pre1-6-g3cd6eeb
|
||||
|
@ -147,5 +147,5 @@ That's it!
|
||||
If you feel that there's something missing or if you found a bug, feel
|
||||
free to submit a pull request!
|
||||
|
||||
latexmath:[\[VERSION\]] v0.70-pre1-5-g07dc7b4
|
||||
latexmath:[\[VERSION\]] v0.70-pre1-6-g3cd6eeb
|
||||
+++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
@ -95,10 +95,18 @@ echo "Text that will appear in chat? mykeyboardstartshere [ \"Yep, sure\" , \"No
|
||||
```
|
||||
Please note that you can either send a location or a venue, not both. To send a venue add the mytitlestartshere and the myaddressstartshere keywords.
|
||||
|
||||
To insert a linebreak in your message you can insert ```mynewlinestartshere``` in your echo command:
|
||||
New in v0.6: To insert a linebreak in your message you can insert ```mynewlinestartshere``` in your echo command:
|
||||
```bash
|
||||
echo "Text that will appear in one message mynewlinestartshere with this text on a new line"
|
||||
```
|
||||
|
||||
New in v0.7: In case you must extend a message already containing a location, a file, a keyboard etc.,
|
||||
with additionial text simply add ``` mytextstartshere additional text``` at the end of the string:
|
||||
```bash
|
||||
out="Text that will appear mylatstartshere 45 mylongstartshere 45"
|
||||
[[ "$out" != *'in chat'* ]] && out="$out mytextstartshere in chat."
|
||||
echo "$out"
|
||||
```
|
||||
Note: Interactive Chats run independent from main bot and continue running until your script exits or you /cancel if from your Bot.
|
||||
|
||||
### Background Jobs
|
||||
@ -169,5 +177,5 @@ answer_inline_query "$iQUERY_ID" "cached_sticker" "identifier for the sticker"
|
||||
#### [Prev Getting started](2_usage.md)
|
||||
#### [Next Expert Use](4_expert.md)
|
||||
|
||||
#### $$VERSION$$ v0.70-pre1-2-g293ad08
|
||||
#### $$VERSION$$ v0.70-pre1-6-g3cd6eeb
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
# This file is public domain in the USA and all free countries.
|
||||
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
|
||||
#
|
||||
#### $$VERSION$$ v0.70-pre1-5-g07dc7b4
|
||||
#### $$VERSION$$ v0.70-pre1-6-g3cd6eeb
|
||||
|
||||
# source from commands.sh if you want ro use interactive or background jobs
|
||||
|
||||
|
0
test/a-commit-test.sh
Normal file → Executable file
0
test/a-commit-test.sh
Normal file → Executable file
@ -1,4 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
#### $$VERSION$$ v0.70-pre1-0-g490c472
|
||||
|
||||
../dev/hooks/pre-push.sh
|
0
test/d-JSON.sh-test.sh
Normal file → Executable file
0
test/d-JSON.sh-test.sh
Normal file → Executable file
0
test/d-process_message-test.sh
Normal file → Executable file
0
test/d-process_message-test.sh
Normal file → Executable file
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
#### $$VERSION$$ v0.70-pre1-5-g07dc7b4
|
||||
#### $$VERSION$$ v0.70-pre1-6-g3cd6eeb
|
||||
|
||||
# include common functions and definitions
|
||||
# shellcheck source=test/ALL-tests.inc.sh
|
||||
|
0
test/d-user_is-test.sh
Normal file → Executable file
0
test/d-user_is-test.sh
Normal file → Executable file
Loading…
x
Reference in New Issue
Block a user