асинхронно по-умолчанию
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user