telegram.webhookinfo module¶
This module contains an object that represents a Telegram WebhookInfo.
-
class
telegram.webhookinfo.WebhookInfo(url, has_custom_certificate, pending_update_count, **kwargs)¶ Bases:
telegram.base.TelegramObjectThis object represents a Telegram WebhookInfo.
-
url¶ str – Webhook URL, may be empty if webhook is not set up.
-
has_custom_certificate¶ bool
-
pending_update_count¶ int
-
last_error_date¶ int
-
last_error_message¶ str
Parameters: - url (str) – Webhook URL, may be empty if webhook is not set up.
- has_custom_certificate (bool) –
- pending_update_count (int) –
- last_error_date (Optional[int]) –
- last_error_message (Optional[str]) –
-
static
de_json(data, bot)¶ Parameters: - data (dict) –
- bot (telegram.Bot) –
Returns: Return type:
-