Lean  $LEAN_TAG$
QuantConnect.Notifications.NotificationTelegram Class Reference

Telegram notification data More...

Inheritance diagram for QuantConnect.Notifications.NotificationTelegram:
[legend]

Public Member Functions

 NotificationTelegram (string id, string message, string token=null)
 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. More...
 
- Public Member Functions inherited from QuantConnect.Notifications.Notification
virtual void Send ()
 Method for sending implementations of notification object types. More...
 

Public Attributes

string Id
 Send a notification message to this user on Telegram Can be either a personal ID or Group ID. More...
 
string Message
 Message to send. Limited to 4096 characters More...
 
string Token
 Token to use More...
 

Detailed Description

Telegram notification data

Definition at line 163 of file Notification.cs.

Constructor & Destructor Documentation

◆ NotificationTelegram()

QuantConnect.Notifications.NotificationTelegram.NotificationTelegram ( string  id,
string  message,
string  token = null 
)

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
idUser Id or Group Id to send the message too
messageMessage to send
tokenBot token to use, if null defaults to "telegram-token" in config on send

Definition at line 192 of file Notification.cs.

Member Data Documentation

◆ Id

string QuantConnect.Notifications.NotificationTelegram.Id

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

Definition at line 169 of file Notification.cs.

◆ Message

string QuantConnect.Notifications.NotificationTelegram.Message

Message to send. Limited to 4096 characters

Definition at line 175 of file Notification.cs.

◆ Token

string QuantConnect.Notifications.NotificationTelegram.Token

Token to use

Definition at line 181 of file Notification.cs.


The documentation for this class was generated from the following file: