Class WebhookInfo
Contains information about the current status of a webhook
Inheritance
System.Object
WebhookInfo
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TelegramBotApi.Types
Assembly: TelegramBotApi.dll
Syntax
[JsonObject(MemberSerialization = MemberSerialization.OptIn, ItemNullValueHandling = NullValueHandling.Ignore)]
public class WebhookInfo
Properties
| Improve this Doc View SourceAllowedUpdates
Optional. A list of update types the bot is subscribed to. Defaults to all update types
Declaration
public UpdateType[] AllowedUpdates { get; set; }
Property Value
Type | Description |
---|---|
UpdateType[] |
HasCustomCertificate
True, if a custom certificate was provided for webhook certificate checks
Declaration
[JsonProperty(PropertyName = "has_custom_certificate")]
public bool HasCustomCertificate { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LastErrorDate
Optional. Unix time for the most recent error that happened when trying to deliver an update via webhook
Declaration
public DateTime LastErrorDate { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
LastErrorMessage
Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook
Declaration
[JsonProperty(PropertyName = "last_error_message")]
public string LastErrorMessage { get; set; }
Property Value
Type | Description |
---|---|
System.String |
MaxConnections
Optional. Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery
Declaration
[JsonProperty(PropertyName = "max_connections")]
public int MaxConnections { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
PendingUpdateCount
Number of updates awaiting delivery
Declaration
[JsonProperty(PropertyName = "pending_update_count")]
public int PendingUpdateCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Url
Webhook URL, may be empty if webhook is not set up
Declaration
[JsonProperty(PropertyName = "url")]
public string Url { get; set; }
Property Value
Type | Description |
---|---|
System.String |