chore: build
This commit is contained in:
@@ -10,7 +10,6 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TelegramBot est l'instance globale accessible depuis le package db
|
|
||||||
var TelegramBot *TelegramService
|
var TelegramBot *TelegramService
|
||||||
|
|
||||||
type TelegramService struct {
|
type TelegramService struct {
|
||||||
@@ -103,7 +102,7 @@ func (t *TelegramService) SetWebhook(webhookURL string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
payload := map[string]interface{}{
|
payload := map[string]interface{}{
|
||||||
"url": webhookURL,
|
"url": webhookURL,
|
||||||
"allowed_updates": []string{"message"},
|
"allowed_updates": []string{"message"},
|
||||||
}
|
}
|
||||||
if t.webhookSecret != "" {
|
if t.webhookSecret != "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user