Describes a Web App. Telegram Documentation: https://core.telegram.org/bots/api#webappinfo :param url: An HTTPS URL of a Web App to be opened with additional data as specified in Initializing Web Apps :type url: :obj:`str` :return: Instance of the class :rtype: :class:`te
| 2665 | |
| 2666 | |
| 2667 | class WebAppInfo(JsonDeserializable, Dictionaryable): |
| 2668 | """ |
| 2669 | Describes a Web App. |
| 2670 | |
| 2671 | Telegram Documentation: https://core.telegram.org/bots/api#webappinfo |
| 2672 | |
| 2673 | :param url: An HTTPS URL of a Web App to be opened with additional data as specified in Initializing Web Apps |
| 2674 | :type url: :obj:`str` |
| 2675 | |
| 2676 | :return: Instance of the class |
| 2677 | :rtype: :class:`telebot.types.WebAppInfo` |
| 2678 | """ |
| 2679 | @classmethod |
| 2680 | def de_json(cls, json_string): |
| 2681 | if json_string is None: return None |
| 2682 | obj = cls.check_json(json_string) |
| 2683 | return cls(**obj) |
| 2684 | |
| 2685 | def __init__(self, url, **kwargs): |
| 2686 | self.url: str = url |
| 2687 | |
| 2688 | def to_dict(self): |
| 2689 | return {'url': self.url} |
| 2690 | |
| 2691 | |
| 2692 | # noinspection PyUnresolvedReferences |