From dd51214244df6d881f03688e71174f3a2ba5d140 Mon Sep 17 00:00:00 2001 From: "Mr.Gigabyte" Date: Sat, 14 May 2016 22:59:21 +0530 Subject: [PATCH] Update README.md --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 14f085a..31c7562 100644 --- a/README.md +++ b/README.md @@ -386,6 +386,20 @@ def query_text(inline_query): print(e) ``` +###Working with entities: +This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc. +Attributes: +* `type` +* `url` +* `offset` +* `length` + + +**Here's an Example:**`message.entities[num].`
+Here `num` is the entity number or order of entity in a reply, for if incase there are multiple entities in the reply/message.
+`message.entities` returns a list of entities object.
+`message.entities[0].type` would give the type of the first entity
+Refer [Bot Api](https://core.telegram.org/bots/api#messageentity) for extra details ## Advanced use of the API