mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-29 21:37:58 +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:
parent
df4d9c06f3
commit
3201ce4172
@ -143,6 +143,7 @@ class TelegramBot extends EventEmitter {
|
|||||||
this._fixReplyMarkup(options.qs);
|
this._fixReplyMarkup(options.qs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
options.method = "POST";
|
||||||
options.url = this._buildURL(_path);
|
options.url = this._buildURL(_path);
|
||||||
options.simple = false;
|
options.simple = false;
|
||||||
options.resolveWithFullResponse = true;
|
options.resolveWithFullResponse = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user