python-telegram-bot/telegram
Jacob Bom 6647ae3c25 Add methods to parse entities in Message
Should close #400.

* Add parse_entity

* Add parse_entities

* Add MessageEntity types as constants to MessageEntity.

* Add MAX_MESSAGE_ENTITIES to constants.py
Note: the value has been found by experimentation as opposed to extracted from the api docs.

* Add tests for parse_entity and parse_entities
2016-09-07 08:49:09 +02:00
..
contrib fix yapf 2016-08-26 11:17:05 +02:00
ext Reusable dispatcher (#402) 2016-09-06 16:38:07 +03:00
utils Reusable dispatcher (#402) 2016-09-06 16:38:07 +03:00
__init__.py drop Python 2.6 support (closes #245) (#386) 2016-08-20 22:01:07 +02:00
__main__.py __main__.py: assist with creating issues on github 2016-07-09 14:40:53 +03:00
audio.py Running yapf for codebase #259 2016-05-14 22:46:40 -03:00
base.py use ujson as JSON en/decoder if available 2016-08-26 09:40:46 +02:00
bot.py Reusable dispatcher (#402) 2016-09-06 16:38:07 +03:00
callbackquery.py fix callbackquery to_dict 2016-05-30 15:59:45 +02:00
chat.py add constants for Chat.type and ChatMember.status 2016-05-28 16:51:44 +02:00
chataction.py Running yapf for codebase #259 2016-05-14 22:46:40 -03:00
chatmember.py add constants for Chat.type and ChatMember.status 2016-05-28 16:51:44 +02:00
choseninlineresult.py Add kwargs to API calls #302 2016-05-23 20:43:17 -03:00
constants.py Add methods to parse entities in Message 2016-09-07 08:49:09 +02:00
contact.py Running yapf for codebase #259 2016-05-14 22:46:40 -03:00
document.py Running yapf for codebase #259 2016-05-14 22:46:40 -03:00
emoji.py Remove \ from base code #259 2016-05-14 23:26:56 -03:00
error.py ChatMigrated exception (#353) 2016-07-25 21:50:33 +03:00
file.py Reusable dispatcher (#402) 2016-09-06 16:38:07 +03:00
forcereply.py Running yapf for codebase #259 2016-05-14 22:46:40 -03:00
inlinekeyboardbutton.py Running yapf for codebase #259 2016-05-14 22:46:40 -03:00
inlinekeyboardmarkup.py Add kwargs to API calls #302 2016-05-23 20:43:17 -03:00
inlinequery.py Running yapf for codebase #259 2016-05-14 22:46:40 -03:00
inlinequeryresult.py Running yapf for codebase #259 2016-05-14 22:46:40 -03:00
inlinequeryresultarticle.py fix yapf 2016-08-26 11:17:05 +02:00
inlinequeryresultaudio.py fix yapf 2016-08-26 11:17:05 +02:00
inlinequeryresultcachedaudio.py fix yapf 2016-08-26 11:17:05 +02:00
inlinequeryresultcacheddocument.py fix yapf 2016-08-26 11:17:05 +02:00
inlinequeryresultcachedgif.py fix yapf 2016-08-26 11:17:05 +02:00
inlinequeryresultcachedmpeg4gif.py fix yapf 2016-08-26 11:17:05 +02:00
inlinequeryresultcachedphoto.py fix yapf 2016-08-26 11:17:05 +02:00
inlinequeryresultcachedsticker.py fix yapf 2016-08-26 11:17:05 +02:00
inlinequeryresultcachedvideo.py fix yapf 2016-08-26 11:17:05 +02:00
inlinequeryresultcachedvoice.py fix yapf 2016-08-26 11:17:05 +02:00
inlinequeryresultcontact.py fix yapf 2016-08-26 11:17:05 +02:00
inlinequeryresultdocument.py fix yapf 2016-08-26 11:17:05 +02:00
inlinequeryresultgif.py fix yapf 2016-08-26 11:17:05 +02:00
inlinequeryresultlocation.py fix yapf 2016-08-26 11:17:05 +02:00
inlinequeryresultmpeg4gif.py fix yapf 2016-08-26 11:17:05 +02:00
inlinequeryresultphoto.py fix yapf 2016-08-26 11:17:05 +02:00
inlinequeryresultvenue.py fix yapf 2016-08-26 11:17:05 +02:00
inlinequeryresultvideo.py fix yapf 2016-08-26 11:17:05 +02:00
inlinequeryresultvoice.py fix yapf 2016-08-26 11:17:05 +02:00
inputcontactmessagecontent.py Add kwargs to API calls #302 2016-05-23 20:43:17 -03:00
inputfile.py fix yapf 2016-08-26 11:17:05 +02:00
inputlocationmessagecontent.py Add kwargs to API calls #302 2016-05-23 20:43:17 -03:00
inputmessagecontent.py Due kwargs I had to change the factory class in favor of InputLocationMessageContent #302 2016-05-23 21:09:07 -03:00
inputtextmessagecontent.py Add kwargs to API calls #302 2016-05-23 20:43:17 -03:00
inputvenuemessagecontent.py Add kwargs to API calls #302 2016-05-23 20:43:17 -03:00
keyboardbutton.py Add kwargs to API calls #302 2016-05-23 20:43:17 -03:00
location.py Add kwargs to API calls #302 2016-05-23 20:43:17 -03:00
message.py Add methods to parse entities in Message 2016-09-07 08:49:09 +02:00
messageentity.py Add methods to parse entities in Message 2016-09-07 08:49:09 +02:00
parsemode.py Running yapf for codebase #259 2016-05-14 22:46:40 -03:00
photosize.py Set split_before_logical_operator to True 2016-05-23 17:19:35 -03:00
replykeyboardhide.py Running yapf for codebase #259 2016-05-14 22:46:40 -03:00
replykeyboardmarkup.py Running yapf for codebase #259 2016-05-14 22:46:40 -03:00
replymarkup.py Running yapf for codebase #259 2016-05-14 22:46:40 -03:00
sticker.py Running yapf for codebase #259 2016-05-14 22:46:40 -03:00
update.py Add edited_message to Update #302 2016-05-23 20:24:43 -03:00
user.py Running yapf for codebase #259 2016-05-14 22:46:40 -03:00
userprofilephotos.py Add kwargs to API calls #302 2016-05-23 20:43:17 -03:00
venue.py Add kwargs to API calls #302 2016-05-23 20:43:17 -03:00
version.py move version string to telegram/version.py (#361) 2016-07-29 15:40:11 +00:00
video.py Running yapf for codebase #259 2016-05-14 22:46:40 -03:00
voice.py Running yapf for codebase #259 2016-05-14 22:46:40 -03:00