mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Added the field web_app_name to the class WriteAccessAllowed.
This commit is contained in:
parent
a7cafd1f24
commit
d1417e5616
@ -7396,13 +7396,20 @@ class WriteAccessAllowed(JsonDeserializable):
|
|||||||
Currently holds no information.
|
Currently holds no information.
|
||||||
|
|
||||||
Telegram documentation: https://core.telegram.org/bots/api#writeaccessallowed
|
Telegram documentation: https://core.telegram.org/bots/api#writeaccessallowed
|
||||||
|
|
||||||
|
:param web_app_name: Optional. Name of the Web App which was launched from a link
|
||||||
|
:type web_app_name: :obj:`str`
|
||||||
"""
|
"""
|
||||||
@classmethod
|
@classmethod
|
||||||
def de_json(cls, json_string):
|
def de_json(cls, json_string):
|
||||||
return cls()
|
if json_string is None: return None
|
||||||
|
obj = cls.check_json(json_string)
|
||||||
|
return cls(**obj)
|
||||||
|
|
||||||
|
|
||||||
def __init__(self) -> None:
|
def __init__(self, web_app_name: str) -> None:
|
||||||
pass
|
self.web_app_name: str = web_app_name
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class UserShared(JsonDeserializable):
|
class UserShared(JsonDeserializable):
|
||||||
|
Loading…
Reference in New Issue
Block a user