From b91e96dce1b049e21046ab385a1ba41ff0bbe0ea Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Sat, 6 Feb 2021 16:52:25 +0100 Subject: [PATCH] doc: use FILEURL --- doc/2_usage.md | 4 ++-- doc/6_reference.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/2_usage.md b/doc/2_usage.md index 2d15742..a0a5211 100644 --- a/doc/2_usage.md +++ b/doc/2_usage.md @@ -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 diff --git a/doc/6_reference.md b/doc/6_reference.md index 5e80268..c959d60 100644 --- a/doc/6_reference.md +++ b/doc/6_reference.md @@ -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