telegram#

Telegram contrib functionality.

Function notify_telegram#

notify_telegram(title: str, content: str | dict[str, Any], token: str | Path | None = None, chat: str | None = None, mention_user: str | None = None, **kwargs) bool[source]#

Sends a telegram notification and returns True on success. The communication with the telegram API might have some delays and is therefore handled by a thread.

Class NotifyTelegramParameter#

class NotifyTelegramParameter(*args, **kwargs)[source]#

Bases: NotifyParameter

get_transport() dict[str, Any][source]#

Method to configure the transport that is toggled by this parameter. Should return a dictionary with "func" and "raw" (optional) fields.