@azteam/telegram-api
Advanced tools
Comparing version 1.0.14 to 1.0.15
{ | ||
"name": "@azteam/telegram-api", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -10,3 +10,3 @@ import HttpClient from '@azteam/http-client'; | ||
async initHook(callbackURL) { | ||
return await this.client.get(this.endpoint + '/setWebhook', { | ||
return await this.client.post(this.endpoint + '/setWebhook', { | ||
url: callbackURL, | ||
@@ -21,3 +21,3 @@ }); | ||
this.client.get(this.endpoint + '/sendMessage', { | ||
this.client.post(this.endpoint + '/sendMessage', { | ||
chat_id: telegram_id, | ||
@@ -24,0 +24,0 @@ text: message, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1478