From ea1257309f8c337ea699dae15bdf33fc1be21210 Mon Sep 17 00:00:00 2001 From: Eugenio Panadero Date: Sun, 30 Jul 2017 13:35:07 +0200 Subject: [PATCH] update telegram proxy parameters (#3099) --- source/_components/telegram_bot.broadcast.markdown | 2 ++ source/_components/telegram_bot.polling.markdown | 2 ++ source/_components/telegram_bot.webhooks.markdown | 2 ++ 3 files changed, 6 insertions(+) diff --git a/source/_components/telegram_bot.broadcast.markdown b/source/_components/telegram_bot.broadcast.markdown index 5bfa018b732..d743f1d8916 100644 --- a/source/_components/telegram_bot.broadcast.markdown +++ b/source/_components/telegram_bot.broadcast.markdown @@ -32,6 +32,8 @@ Configuration variables: - **allowed_chat_ids** (*Required*): A list of user in the `user_id` Telegram format enabled to interact to webhook - **api_key** (*Required*): The API token of your bot. - **parse_mode** (*Optional*): Default parser for messages if not explicit in message data: 'html' or 'markdown'. Default is 'markdown'. +- **proxy_url** (*Optional*): Proxy url if working behind one (`socks5://proxy_ip:proxy_port`) +- **proxy_params** (*Optional*): Proxy configuration parameters, as dict, if working behind a proxy (`username`, `password`, etc.) To get your `chat_id` and `api_key` follow the instructions [here](/components/notify.telegram/). diff --git a/source/_components/telegram_bot.polling.markdown b/source/_components/telegram_bot.polling.markdown index fcd0ce4a9bf..a938dca5c5d 100644 --- a/source/_components/telegram_bot.polling.markdown +++ b/source/_components/telegram_bot.polling.markdown @@ -34,6 +34,8 @@ Configuration variables: - **allowed_chat_ids** (*Required*): A list of user in the `user_id` Telegram format enabled to interact to webhook - **api_key** (*Required*): The API token of your bot. - **parse_mode** (*Optional*): Default parser for messages if not explicit in message data: 'html' or 'markdown'. Default is 'markdown'. +- **proxy_url** (*Optional*): Proxy url if working behind one (`socks5://proxy_ip:proxy_port`) +- **proxy_params** (*Optional*): Proxy configuration parameters, as dict, if working behind a proxy (`username`, `password`, etc.) To get your `chat_id` and `api_key` follow the instructions [here](/components/notify.telegram/). diff --git a/source/_components/telegram_bot.webhooks.markdown b/source/_components/telegram_bot.webhooks.markdown index aacbdffe549..8d03217d23f 100644 --- a/source/_components/telegram_bot.webhooks.markdown +++ b/source/_components/telegram_bot.webhooks.markdown @@ -40,6 +40,8 @@ Configuration variables: - **api_key** (*Required*): The API token of your bot. - **trusted_networks** (*Optional*): Telegram server access ACL as list. Defaults to `149.154.167.197-233`. - **parse_mode** (*Optional*): Default parser for messages if not explicit in message data: 'html' or 'markdown'. Default is 'markdown'. +- **proxy_url** (*Optional*): Proxy url if working behind one (`socks5://proxy_ip:proxy_port`) +- **proxy_params** (*Optional*): Proxy configuration parameters, as dict, if working behind a proxy (`username`, `password`, etc.) - **url** (*Optional*): Allow to overwrite the `base_url` from http component for diferent configs. To get your `chat_id` and `api_key` follow the instructions [here](/components/notify.telegram) .