mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-22 22:45:09 +01:00
Indent return statement in parse*entities (#1473)
This commit is contained in:
parent
5e0e4c01ff
commit
316d046628
1 changed files with 2 additions and 2 deletions
|
@ -841,7 +841,7 @@ class Message(TelegramObject):
|
||||||
entity_text = self.text.encode('utf-16-le')
|
entity_text = self.text.encode('utf-16-le')
|
||||||
entity_text = entity_text[entity.offset * 2:(entity.offset + entity.length) * 2]
|
entity_text = entity_text[entity.offset * 2:(entity.offset + entity.length) * 2]
|
||||||
|
|
||||||
return entity_text.decode('utf-16-le')
|
return entity_text.decode('utf-16-le')
|
||||||
|
|
||||||
def parse_caption_entity(self, entity):
|
def parse_caption_entity(self, entity):
|
||||||
"""Returns the text from a given :class:`telegram.MessageEntity`.
|
"""Returns the text from a given :class:`telegram.MessageEntity`.
|
||||||
|
@ -866,7 +866,7 @@ class Message(TelegramObject):
|
||||||
entity_text = self.caption.encode('utf-16-le')
|
entity_text = self.caption.encode('utf-16-le')
|
||||||
entity_text = entity_text[entity.offset * 2:(entity.offset + entity.length) * 2]
|
entity_text = entity_text[entity.offset * 2:(entity.offset + entity.length) * 2]
|
||||||
|
|
||||||
return entity_text.decode('utf-16-le')
|
return entity_text.decode('utf-16-le')
|
||||||
|
|
||||||
def parse_entities(self, types=None):
|
def parse_entities(self, types=None):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue