From a1e3c5a52379ea66da1e175cddceb52c138e80f7 Mon Sep 17 00:00:00 2001 From: Bibo-Joshi Date: Fri, 15 Jan 2021 08:12:13 +0100 Subject: [PATCH] Updated Local Bot API Server (markdown) --- Local-Bot-API-Server.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Local-Bot-API-Server.md b/Local-Bot-API-Server.md index 7d0ae7c..8006811 100644 --- a/Local-Bot-API-Server.md +++ b/Local-Bot-API-Server.md @@ -14,4 +14,4 @@ Bot API 5.0 (and therefore local API server) is supported by PTB since v13.1. ### Working with files * When running the server with the `--local` flag, `get_file` will give you the local file path as `file_path`. PTB detects that, so that `get_file(…).download()` just returns the local file string instead of downloading it. * When running the server with the `--local` flag, you can send files by passing `'file:///absolute/path/to/file'` instead of an URL or a file handler. Skipping the `'file://'` prefix, passing relative paths (without prefix) or even passing `pathlib.Path` objects is supported as well as a convenience feature by PTB. -* When running the server *without* the `--local` flag, the Bot API server does *not* automatically serve the files obtained by `get_file()`. See [telegram-bot-api/#26](https://github.com/tdlib/telegram-bot-api/issues/26). SO be aware that you have to run a web server which serves them, otherwise you will run into 404 errors. \ No newline at end of file +* When running the server *without* the `--local` flag, the Bot API server does *not* automatically serve the files obtained by `get_file()`. See [telegram-bot-api/#26](https://github.com/tdlib/telegram-bot-api/issues/26). So be aware that you have to run a web server which serves them, otherwise you will run into 404 errors. \ No newline at end of file