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