diff --git a/telegram/message.py b/telegram/message.py index 86e895d14..d63b636d7 100644 --- a/telegram/message.py +++ b/telegram/message.py @@ -673,6 +673,8 @@ class Message(TelegramObject): if entity.type == MessageEntity.TEXT_LINK: insert = '{}'.format(entity.url, text) + elif entity.type == MessageEntity.URL: + insert = '{0}'.format(text) elif entity.type == MessageEntity.BOLD: insert = '' + text + '' elif entity.type == MessageEntity.ITALIC: @@ -723,6 +725,8 @@ class Message(TelegramObject): if entity.type == MessageEntity.TEXT_LINK: insert = '[{}]({})'.format(text, entity.url) + elif entity.type == MessageEntity.URL: + insert = '[{0}]({0})'.format(text) elif entity.type == MessageEntity.BOLD: insert = '*' + text + '*' elif entity.type == MessageEntity.ITALIC: