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...
 

Properties

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

Detailed Description

Telegram notification data

Definition at line 165 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 194 of file Notification.cs.

Property Documentation

◆ Id

string QuantConnect.Notifications.NotificationTelegram.Id
getset

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

Definition at line 171 of file Notification.cs.

◆ Message

string QuantConnect.Notifications.NotificationTelegram.Message
getset

Message to send. Limited to 4096 characters

Definition at line 177 of file Notification.cs.

◆ Token

string QuantConnect.Notifications.NotificationTelegram.Token
getset

Token to use

Definition at line 183 of file Notification.cs.


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