From 68ec73afb6e55661e82311d03eabe5ae20d29260 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Sun, 22 May 2016 12:58:10 +0200 Subject: [PATCH] use kwargs on messageentity --- telegram/messageentity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telegram/messageentity.py b/telegram/messageentity.py index 4b0e03487..cfa309a18 100644 --- a/telegram/messageentity.py +++ b/telegram/messageentity.py @@ -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):