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 TelegramNotificationEndpoint class.
Declaration
protected TelegramNotificationEndpoint()
TelegramNotificationEndpoint(String, String, String, String, String, String, String, Nullable<NotificationEndpointBase.StatusEnum>, List<Label>, NotificationEndpointBaseLinks, NotificationEndpointType)
Initializes a new instance of the TelegramNotificationEndpoint class.
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.String | token | Specifies the Telegram bot token. See https://core.telegram.org/bots#creating-a-new-bot . (required). |
System.String | channel | ID of the telegram channel, a chat_id in https://core.telegram.org/bots/api#sendmessage . (required). |
System.String | id | |
System.String | orgID | |
System.String | userID | |
System.String | description | |
System.String | name | |
System.Nullable<NotificationEndpointBase.StatusEnum> | status | |
List<Label> | labels | |
NotificationEndpointBaseLinks | links | |
NotificationEndpointType | 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.String | 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.String | 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 |
---|---|---|
TelegramNotificationEndpoint | input | Instance of TelegramNotificationEndpoint to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
System.Object | input | Object to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Overrides
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
Overrides
ToJson()
Returns the JSON string presentation of the object
Declaration
public override string ToJson()
Returns
Type | Description |
---|---|
System.String | 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 | String presentation of the object |