MCPcopy Create free account
hub / github.com/eternnoir/pyTelegramBotAPI / WebAppInfo

Class WebAppInfo

telebot/types.py:2667–2689  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2665
2666
2667class 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

Callers 2

startFunction · 0.90
startFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…