Entities: url, email and other
Handle when user writes some entities (url, email, phone_number, hashtag, and other)
What are entities?
Listen to text message with some entity
import { OnEntity, Controller } from 'nestgram';
import { AppService } from './app.service';
@Controller()
export class AppController {
constructor(private readonly appService?: AppService) {}
@OnEntity('email')
async onEmail(): Promise<string> {
return 'I got your email!';
}
}Get entity from a text message
Last updated