api.getTextEntities()
Returns all entities (mentions, hashtags, cashtags, bot commands, bank card numbers, URLs, and email addresses) contained in the text. Can be called synchronously
Parameters
GetTextEntitiesParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
text | string | The text in which to look for entites |
Returns
ApiResponse
interface:interface ApiResponse {
_: 'getTextEntities' | 'error'
airgram: Airgram
request: {
method: 'getTextEntities'
params: GetTextEntitiesParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}