func SendEmailAlert(msg string, cfg *config.Config) error {
	if err := alerting.NewEmailAlerter().Send(msg, cfg.SendGrid.SendGridAPIToken, cfg.SendGrid.ReceiverMailAddress); err != nil {
		log.Printf("failed to send email alert: %v", err)
		return err
	}
	return nil
}
SendEmailAlert to send mail
package server
import (
	"cosmos-validator-mission-control/alert-bot/alerting"
	"cosmos-validator-mission-control/alert-bot/config"
	"log"
)
func SendTelegramAlert(msg string, cfg *config.Config) error {
	if err := alerting.NewTelegramAlerter().Send(msg, cfg.Telegram.BotToken, cfg.Telegram.ChatID); err != nil {
		log.Printf("failed to send telegram alert: %v", err)
		return err
	}
	return nil
}