/** Represents a part of the text which must be formatted differently */ export declare type TextEntityTypeUnion = TextEntityTypeMention | TextEntityTypeHashtag | TextEntityTypeCashtag | TextEntityTypeBotCommand | TextEntityTypeUrl | TextEntityTypeEmailAddress | TextEntityTypeBold | TextEntityTypeItalic | TextEntityTypeCode | TextEntityTypePre | TextEntityTypePreCode | TextEntityTypeTextUrl | TextEntityTypeMentionName | TextEntityTypePhoneNumber; /** A mention of a user by their username */ export interface TextEntityTypeMention { _: 'textEntityTypeMention'; } /** A hashtag text, beginning with "#" */ export interface TextEntityTypeHashtag { _: 'textEntityTypeHashtag'; } /** * A cashtag text, beginning with "$" and consisting of capital english letters (i.e. * "$USD") */ export interface TextEntityTypeCashtag { _: 'textEntityTypeCashtag'; } /** * A bot command, beginning with "/". This shouldn't be highlighted if there are no * bots in the chat */ export interface TextEntityTypeBotCommand { _: 'textEntityTypeBotCommand'; } /** An HTTP URL */ export interface TextEntityTypeUrl { _: 'textEntityTypeUrl'; } /** An email address */ export interface TextEntityTypeEmailAddress { _: 'textEntityTypeEmailAddress'; } /** A bold text */ export interface TextEntityTypeBold { _: 'textEntityTypeBold'; } /** An italic text */ export interface TextEntityTypeItalic { _: 'textEntityTypeItalic'; } /** Text that must be formatted as if inside a code HTML tag */ export interface TextEntityTypeCode { _: 'textEntityTypeCode'; } /** Text that must be formatted as if inside a pre HTML tag */ export interface TextEntityTypePre { _: 'textEntityTypePre'; } /** Text that must be formatted as if inside pre, and code HTML tags */ export interface TextEntityTypePreCode { _: 'textEntityTypePreCode'; /** Programming language of the code; as defined by the sender */ language: string; } /** A text description shown instead of a raw URL */ export interface TextEntityTypeTextUrl { _: 'textEntityTypeTextUrl'; /** HTTP or tg:// URL to be opened when the link is clicked */ url: string; } /** A text shows instead of a raw mention of the user (e.g., when the user has no username) */ export interface TextEntityTypeMentionName { _: 'textEntityTypeMentionName'; /** Identifier of the mentioned user */ userId: number; } /** A phone number */ export interface TextEntityTypePhoneNumber { _: 'textEntityTypePhoneNumber'; }