api.parseTextEntities()
Parses Bold, Italic, Underline, Strikethrough, Spoiler, Code, Pre, PreCode, TextUrl and MentionName entities contained in the text. Can be called synchronously
Parameters
ParseTextEntitiesParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
text | string | The text to parse |
parseMode | Text parse mode |
Returns
ApiResponse
interface:interface ApiResponse {
_: 'parseTextEntities' | 'error'
airgram: Airgram
request: {
method: 'parseTextEntities'
params: ParseTextEntitiesParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}