2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-28 21:07:39 +00:00

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
This commit is contained in:
GochoMugo 2017-01-13 11:06:31 +03:00
parent df4d9c06f3
commit 3201ce4172
No known key found for this signature in database
GPG Key ID: 7B6A01CB57AA39E4

View File

@ -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;