This object contains information about the start page settings 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:`title`, :attr:`message` and :attr:`sticker` are equal. .. v
| 344 | |
| 345 | |
| 346 | class BusinessIntro(TelegramObject): |
| 347 | """ |
| 348 | This object contains information about the start page settings of a Telegram Business account. |
| 349 | |
| 350 | Objects of this class are comparable in terms of equality. |
| 351 | Two objects of this class are considered equal, if their |
| 352 | :attr:`title`, :attr:`message` and :attr:`sticker` are equal. |
| 353 | |
| 354 | .. versionadded:: 21.1 |
| 355 | |
| 356 | Args: |
| 357 | title (:obj:`str`, optional): Title text of the business intro. |
| 358 | message (:obj:`str`, optional): Message text of the business intro. |
| 359 | sticker (:class:`telegram.Sticker`, optional): Sticker of the business intro. |
| 360 | |
| 361 | Attributes: |
| 362 | title (:obj:`str`): Optional. Title text of the business intro. |
| 363 | message (:obj:`str`): Optional. Message text of the business intro. |
| 364 | sticker (:class:`telegram.Sticker`): Optional. Sticker of the business intro. |
| 365 | """ |
| 366 | |
| 367 | __slots__ = ( |
| 368 | "message", |
| 369 | "sticker", |
| 370 | "title", |
| 371 | ) |
| 372 | |
| 373 | def __init__( |
| 374 | self, |
| 375 | title: str | None = None, |
| 376 | message: str | None = None, |
| 377 | sticker: Sticker | None = None, |
| 378 | *, |
| 379 | api_kwargs: JSONDict | None = None, |
| 380 | ): |
| 381 | super().__init__(api_kwargs=api_kwargs) |
| 382 | self.title: str | None = title |
| 383 | self.message: str | None = message |
| 384 | self.sticker: Sticker | None = sticker |
| 385 | |
| 386 | self._id_attrs = (self.title, self.message, self.sticker) |
| 387 | |
| 388 | self._freeze() |
| 389 | |
| 390 | @classmethod |
| 391 | def de_json(cls, data: JSONDict, bot: "Bot | None" = None) -> "BusinessIntro": |
| 392 | """See :meth:`telegram.TelegramObject.de_json`.""" |
| 393 | data = cls._parse_data(data) |
| 394 | |
| 395 | data["sticker"] = de_json_optional(data.get("sticker"), Sticker, bot) |
| 396 | |
| 397 | return super().de_json(data=data, bot=bot) |
| 398 | |
| 399 | |
| 400 | class BusinessLocation(TelegramObject): |
no outgoing calls
searching dependent graphs…