# Алерт в Telegram команде on-call
curl https://api.notiq.ru/v1/alerts \
-H "Authorization: Bearer $TOKEN" \
-d '{
"source": "sentry",
"severity": "critical",
"route": "on-call",
"title": "API 500 spike",
"url": "https://sentry.io/..."
}'
client := notiq.New(os.Getenv("NOTIQ_TOKEN"))
_, err := client.Send(ctx, ¬iq.Message{
To: "user_42",
Template: "order_paid",
Cascade: []string{"telegram", "push", "sms"},
Data: map[string]any{
"order": "N-1088",
"sum": 4290,
},
})
from notiq import Notiq
client = Notiq(token=os.environ["NOTIQ_TOKEN"])
client.send(
to="user_42",
template="order_paid",
cascade=["telegram", "push", "sms"],
data={"order": "N-1088", "sum": 4290},
)
import { Notiq } from "@notiq/sdk";
const client = new Notiq(process.env.NOTIQ_TOKEN);
await client.send({
to: "user_42",
template: "order_paid",
cascade: ["telegram", "push", "sms"],
data: { order: "N-1088", sum: 4290 },
});