peyk.platforms.bale.types.webhook_info

Classes

WebhookInfo(url)

Current webhook status.

class peyk.platforms.bale.types.webhook_info.WebhookInfo(url: str)[source]

Bases: object

Current webhook status.

Per docs.bale.ai, WebhookInfo only carries url – unlike Telegram’s richer type, Bale does not document has_custom_certificate or pending_update_count.

url: str
classmethod from_dict(data: dict | None) WebhookInfo | None[source]

Parse raw Bale data into WebhookInfo.

Parameters:

data (Optional[dict]) – Raw API object or None.

Returns:

Parsed object or None.

Return type:

Optional[WebhookInfo]

Raises:

KeyError – If a required raw field is missing.