Show / Hide Table of Contents

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 Source

AllowedUpdates

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[]
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

PendingUpdateCount

Number of updates awaiting delivery

Declaration
[JsonProperty(PropertyName = "pending_update_count")]
public int PendingUpdateCount { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

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
  • Improve this Doc
  • View Source
Back to top Generated by DocFX