From 3201ce417209b5ce8966cfbf52e092e00663e67d Mon Sep 17 00:00:00 2001 From: GochoMugo Date: Fri, 13 Jan 2017 11:06:31 +0300 Subject: [PATCH] telegram: Use POST requests by default Feature: To be more RFC compliant, particularly when sending files, we are going to default to using POST requests. We have been using GET requests (even when uploading files). PS: This causes major problems with PWRTelegram API --- src/telegram.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/telegram.js b/src/telegram.js index 0a7a97e..a4975df 100644 --- a/src/telegram.js +++ b/src/telegram.js @@ -143,6 +143,7 @@ class TelegramBot extends EventEmitter { this._fixReplyMarkup(options.qs); } + options.method = "POST"; options.url = this._buildURL(_path); options.simple = false; options.resolveWithFullResponse = true;