import { Client } from '@widgetbot/embed-api'; import * as React from 'react'; export interface TelegramProps { chat?: string; topic?: string; shard: string; token?: string; settingsGroup?: string; defer?: boolean; className?: string; onAPI?: (api: Client) => void; style?: React.CSSProperties; height?: number | string; width?: number | string; focusable?: boolean; options?: { [key: string]: string; }; } export default class TelegramWidget extends React.PureComponent { static defaultProps: Partial; state: { url: any; id: string; }; api: Client; static getDerivedStateFromProps(props: TelegramProps, state: any): { url: string; }; componentDidMount(): void; render(): React.JSX.Element; }