mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-25 16:46:35 +01:00
use kwargs on messageentity
This commit is contained in:
parent
0ace0aa016
commit
68ec73afb6
1 changed files with 2 additions and 2 deletions
|
@ -33,13 +33,13 @@ class MessageEntity(TelegramObject):
|
|||
url (Optional[str]):
|
||||
"""
|
||||
|
||||
def __init__(self, type, offset, length, url=None):
|
||||
def __init__(self, type, offset, length, **kwargs):
|
||||
# Required
|
||||
self.type = type
|
||||
self.offset = offset
|
||||
self.length = length
|
||||
# Optionals
|
||||
self.url = url
|
||||
self.url = kwargs.get('url')
|
||||
|
||||
@staticmethod
|
||||
def de_json(data):
|
||||
|
|
Loading…
Reference in a new issue