mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-11-25 00:37:34 +00:00
doc: use FILEURL
This commit is contained in:
parent
5212df422e
commit
b91e96dce1
@ -241,7 +241,7 @@ e.g. if a new user joins a chat MESSAGE is set to "/_new_chat_user".
|
||||
* `${SERVICE[NEWPHOTO]}`: New Chat Picture
|
||||
* `${MESSAGE}`: /_new_chat_picture SENDER URL
|
||||
**Important:** SERVICE[NEWPHOTO] is NOT a full URL, you must use `download_file "${SERVICE[NEWPHOTO]}"` or prefix path with telegram api url for manual download
|
||||
(_e.g. `getJson "${URL}/${SERVICE[NEWPHOTO]}" >file`_).
|
||||
(_e.g. `getJson "${FILEURL}/${SERVICE[NEWPHOTO]}" >file`_).
|
||||
* `${SERVICE[PINNED]}`: Pinned MESSAGE ID
|
||||
* `${MESSAGE}`: /_new_pinned_message SENDER ID
|
||||
* `${PINNED[ID]}`: Id of pinned message
|
||||
@ -376,5 +376,5 @@ send_action "${CHAT[ID]}" "action"
|
||||
#### [Prev Create Bot](1_firstbot.md)
|
||||
#### [Next Advanced Usage](3_advanced.md)
|
||||
|
||||
#### $$VERSION$$ v1.41-dev-4-gbaa4e14
|
||||
#### $$VERSION$$ v1.41-dev-7-g5212df4
|
||||
|
||||
|
@ -1444,7 +1444,7 @@ avatar.jpg jhsdf-avatar.jpg download-askjgftGJGdh1Z
|
||||
|
||||
#######
|
||||
# manually download files to current directory (not recommended)
|
||||
getJson "${URL}/${photo}" >"downloaded_photo.jpg"
|
||||
getJson "${FILEURL}/${photo}" >"downloaded_photo.jpg"
|
||||
getJson "https://avatars.githubusercontent.com/u/13046303" >"avatar.jpg"
|
||||
|
||||
ls -F
|
||||
@ -1617,5 +1617,5 @@ The name of your bot is available as bash variable "$ME", there is no need to ca
|
||||
#### [Prev Best Practice](5_practice.md)
|
||||
#### [Next Notes for Developers](7_develop.md)
|
||||
|
||||
#### $$VERSION$$ v1.41-dev-6-g0702d58
|
||||
#### $$VERSION$$ v1.41-dev-7-g5212df4
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user