Skip to content

NotificationTelegram

QuantConnect.Notifications.NotificationTelegram

NotificationTelegram(
    id: str, message: str, token: str = None
)

Bases: Notification

Telegram notification data

Constructor for sending a telegram notification to a specific User ID or group ID. Note: The bot must have an open chat with the user or be added to the group for messages to deliver.

Parameters:

Name Type Description Default
id str

User Id or Group Id to send the message too

required
message str

Message to send

required
token str

Bot token to use, if null defaults to "telegram-token" in config on send

None

id

id: str

Send a notification message to this user on Telegram Can be either a personal ID or Group ID.

message

message: str

Message to send. Limited to 4096 characters

token

token: str

Token to use

send

send() -> None

Method for sending implementations of notification object types.