Entities: url, email and other
Handle when user writes some entities (url, email, phone_number, hashtag, and other)
What are entities?
Entity it's part of a message with unique content (e.g. url, email, phone_number, hashtag, cashtag and other). You can read about entity and see all entity types here
Listen to text message with some entity
To listen to a text message with some entity, use @OnEntity
decorator
Optional. @OnEntity
takes the entity type that you want to listen to as argument
app.controller.ts
Get entity from a text message
To get an entity from a text message, use @Entity parameter decorator, and pass the entity type you want to get
Optional. @Entity
takes the entity type you want to get to as argument
app.controller.ts
Last updated