WebhookInfo class

Describes the current status of a webhook.

Constructors

WebhookInfo({required String url, required bool hasCustomCertificate, required int pendingUpdateCount, String? ipAddress, int? lastErrorDate, String? lastErrorMessage, int? lastErrorNetworkDate, int? maxConnections, List<String>? allowedUpdates})
Constructs a WebhookInfo object.
WebhookInfo.fromJson(Map<String, dynamic> json)
Creates a WebhookInfo object from json String.
factory

Properties

allowedUpdates List<String>?
Optional. A list of update types the bot is subscribed to. Defaults to all update types except chat_member
getter/setter pair
hasCustomCertificate bool
True, if a custom certificate was provided for webhook certificate checks
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
ipAddress String?
Optional. Currently used webhook IP address
getter/setter pair
lastErrorDate int?
Optional. Unix time for the most recent error that happened when trying to deliver an update via webhook
getter/setter pair
lastErrorMessage String?
Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook
getter/setter pair
lastErrorNetworkDate int?
Optional. Unix time of the most recent error that happened when trying to synchronize available updates with Telegram datacenters
getter/setter pair
maxConnections int?
Optional. The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery
getter/setter pair
pendingUpdateCount int
Number of updates awaiting delivery
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
Webhook URL, may be empty if webhook is not set up
getter/setter pair

Methods

jsonString() String
Get JSON string of this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Get the json representation of this object.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited