api.parseMarkdown()
Parses Markdown entities in a human-friendly format, ignoring markup errors. Can be called synchronously
Parameters
ParseMarkdownParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
text | The text to parse. For example, "__italic__ ~~strikethrough~~ ||spoiler|| **bold** `code` ```pre``` __[italic__ text_url](telegram.org) __italic**bold italic__bold**" |
Returns
ApiResponse
interface:interface ApiResponse {
_: 'parseMarkdown' | 'error'
airgram: Airgram
request: {
method: 'parseMarkdown'
params: ParseMarkdownParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}