асинхронно по-умолчанию

This commit is contained in:
2025-07-04 11:27:02 +03:00
parent 6011b9f200
commit 7d03f7280c
5 changed files with 45 additions and 42 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ func TestNewTelegramHook(t *testing.T) {
t.Fatalf("Error on valid Telegram API token: %s", err)
}
h, _ := NewTelegramHook("testing", os.Getenv("TELEGRAM_TOKEN"), os.Getenv("TELEGRAM_TARGET"), "")
h, _ := NewTelegramHook("testing", os.Getenv("TELEGRAM_TOKEN"), os.Getenv("TELEGRAM_TARGET"), "", WithSync(true))
if err != nil {
t.Fatalf("Error on valid Telegram API token and target: %s", err)
}