telegram.webhookinfo module

This module contains an object that represents a Telegram WebhookInfo.

class telegram.webhookinfo.WebhookInfo(url, has_custom_certificate, pending_update_count, last_error_date=None, last_error_message=None, max_connections=None, allowed_updates=None, **kwargs)

Bases: telegram.base.TelegramObject

This 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:
Returns:

Return type:

telegram.WebhookInfo