mirror of
https://github.com/danog/telegram-bot-bash.git
synced 2024-12-02 09:28:01 +01:00
Added description of new parameter.
This commit is contained in:
parent
a7a495561e
commit
66b36cc62a
@ -104,7 +104,11 @@ To send messages use the ```send_message``` function:
|
|||||||
```
|
```
|
||||||
send_message "${USER[ID]}" "lol"
|
send_message "${USER[ID]}" "lol"
|
||||||
```
|
```
|
||||||
To send images, videos, voice files, photos ecc use the ```send_photo``` function:
|
This function also allows a third parameter that disables additional function parsing (for safety use this when reprinting user input):
|
||||||
|
```
|
||||||
|
send_message "${USER[ID]}" "lol" "text"
|
||||||
|
```
|
||||||
|
To send images, videos, voice files, photos ecc use the ```send_photo``` function (remember to change the safety Regex @ line 94 to allow sending files only from certain directories):
|
||||||
```
|
```
|
||||||
send_file "${USER[ID]}" "/home/user/doge.jpg" "Lool"
|
send_file "${USER[ID]}" "/home/user/doge.jpg" "Lool"
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user