This object contains information about the location of a Telegram Business account. Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their :attr:`address` is equal. .. versionadded:: 21.1 Args: address (
| 398 | |
| 399 | |
| 400 | class BusinessLocation(TelegramObject): |
| 401 | """ |
| 402 | This object contains information about the location of a Telegram Business account. |
| 403 | |
| 404 | Objects of this class are comparable in terms of equality. |
| 405 | Two objects of this class are considered equal, if their |
| 406 | :attr:`address` is equal. |
| 407 | |
| 408 | .. versionadded:: 21.1 |
| 409 | |
| 410 | Args: |
| 411 | address (:obj:`str`): Address of the business. |
| 412 | location (:class:`telegram.Location`, optional): Location of the business. |
| 413 | |
| 414 | Attributes: |
| 415 | address (:obj:`str`): Address of the business. |
| 416 | location (:class:`telegram.Location`): Optional. Location of the business. |
| 417 | """ |
| 418 | |
| 419 | __slots__ = ( |
| 420 | "address", |
| 421 | "location", |
| 422 | ) |
| 423 | |
| 424 | def __init__( |
| 425 | self, |
| 426 | address: str, |
| 427 | location: "Location | None" = None, |
| 428 | *, |
| 429 | api_kwargs: JSONDict | None = None, |
| 430 | ): |
| 431 | super().__init__(api_kwargs=api_kwargs) |
| 432 | self.address: str = address |
| 433 | self.location: Location | None = location |
| 434 | |
| 435 | self._id_attrs = (self.address,) |
| 436 | |
| 437 | self._freeze() |
| 438 | |
| 439 | @classmethod |
| 440 | def de_json(cls, data: JSONDict, bot: "Bot | None" = None) -> "BusinessLocation": |
| 441 | """See :meth:`telegram.TelegramObject.de_json`.""" |
| 442 | data = cls._parse_data(data) |
| 443 | |
| 444 | data["location"] = de_json_optional(data.get("location"), Location, bot) |
| 445 | |
| 446 | return super().de_json(data=data, bot=bot) |
| 447 | |
| 448 | |
| 449 | class BusinessOpeningHoursInterval(TelegramObject): |
no outgoing calls
searching dependent graphs…