Class TelegramNotificationEndpoint
TelegramNotificationEndpoint
Inheritance
Implements
Inherited Members
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class TelegramNotificationEndpoint : NotificationEndpoint, IEquatable<NotificationEndpointDiscriminator>, IEquatable<NotificationEndpoint>, IEquatable<TelegramNotificationEndpoint>
Constructors
TelegramNotificationEndpoint()
Initializes a new instance of the Telegram
Declaration
protected TelegramNotificationEndpoint()
TelegramNotificationEndpoint(String, String, String, String, String, String, String, Nullable<NotificationEndpointBase.StatusEnum>, List<Label>, NotificationEndpointBaseLinks, NotificationEndpointType)
Initializes a new instance of the Telegram
Declaration
public TelegramNotificationEndpoint(string token = null, string channel = null, string id = null, string orgID = null, string userID = null, string description = null, string name = null, NotificationEndpointBase.StatusEnum? status = null, List<Label> labels = null, NotificationEndpointBaseLinks links = null, NotificationEndpointType type = default(NotificationEndpointType))
Parameters
Type | Name | Description |
---|---|---|
System. |
token | Specifies the Telegram bot token. See https://core.telegram.org/bots#creating-a-new-bot . (required). |
System. |
channel | ID of the telegram channel, a chat_id in https://core.telegram.org/bots/api#sendmessage . (required). |
System. |
id | |
System. |
orgID | |
System. |
userID | |
System. |
description | |
System. |
name | |
System. |
status | |
List<Label> | labels | |
Notification |
links | |
Notification |
type |
Properties
Channel
ID of the telegram channel, a chat_id in https://core.telegram.org/bots/api#sendmessage .
Declaration
public string Channel { get; set; }
Property Value
Type | Description |
---|---|
System. |
ID of the telegram channel, a chat_id in https://core.telegram.org/bots/api#sendmessage . |
Token
Specifies the Telegram bot token. See https://core.telegram.org/bots#creating-a-new-bot .
Declaration
public string Token { get; set; }
Property Value
Type | Description |
---|---|
System. |
Specifies the Telegram bot token. See https://core.telegram.org/bots#creating-a-new-bot . |
Methods
Equals(TelegramNotificationEndpoint)
Returns true if TelegramNotificationEndpoint instances are equal
Declaration
public bool Equals(TelegramNotificationEndpoint input)
Parameters
Type | Name | Description |
---|---|---|
Telegram |
input | Instance of TelegramNotificationEndpoint to be compared |
Returns
Type | Description |
---|---|
System. |
Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
System. |
input | Object to be compared |
Returns
Type | Description |
---|---|
System. |
Boolean |
Overrides
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System. |
Hash code |
Overrides
ToJson()
Returns the JSON string presentation of the object
Declaration
public override string ToJson()
Returns
Type | Description |
---|---|
System. |
JSON string presentation of the object |
Overrides
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |
String presentation of the object |