pub async fn send(msg: &str) -> Result<(), NotifyError>Expand description
Sends a plain text Telegram message to the configured chat.
The target chat is taken from the TELEGRAM_CHAT_ID environment variable,
and the bot token is taken from TELEGRAM_BOT_TOKEN.
§Errors
Returns an error if:
- required environment variables are missing
TELEGRAM_CHAT_IDis invalid- the message is empty after trimming
- the message exceeds Telegram’s 4096 character limit
- Telegram rejects the request