From 58cf9017ea5f4bdb18009284f787ba5b187e03ba Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Wed, 22 May 2019 23:22:11 +0200 Subject: [PATCH] Bashbot Version 0.80 --- doc/6_reference.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/6_reference.md b/doc/6_reference.md index ca88808..79ad072 100644 --- a/doc/6_reference.md +++ b/doc/6_reference.md @@ -101,6 +101,13 @@ The main use case for send_message is to process the output of interactive chats ##### send_file send_file allows you to send different type's of files, e.g. photos, stickers, audio, media, etc. [see more](https://core.telegram.org/bots/api#sending-files) +Starting with version 0.80 send_file implements the following rules: + +- file names must not contain ".." +- file names must not start with "." +- file names not starting wit "/" are realtive to $TMPDIR, e.g. ./data-bot-bash +- abolute filenames must match $FILE_REGEX + *usage:* send_file "${CHAT[ID]}" "file" "caption" *example:*