import { Client } from '@widgetbot/embed-api'; import * as React from 'react'; export { default as TelegramWidget, TelegramProps } from './telegram'; export interface Props { server?: string; channel?: string; thread?: string; shard?: string; username?: string; avatar?: string; token?: string; notifications?: boolean; notificationTimeout?: number; accessibility?: string[]; settingsGroup?: string; emitLatestMessage?: boolean; 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 WidgetBot extends React.PureComponent { static defaultProps: Props; state: { url: any; id: string; }; api: Client; static getDerivedStateFromProps(props: Props, state: any): { url: string; }; componentDidMount(): void; render(): React.JSX.Element; }