pub enum TextEntityType {
Show 20 variants
Mention,
Hashtag,
Cashtag,
BotCommand,
Url,
EmailAddress,
PhoneNumber,
BankCardNumber,
Bold,
Italic,
Underline,
Strikethrough,
Spoiler,
Code,
Pre,
PreCode(TextEntityTypePreCode),
TextUrl(TextEntityTypeTextUrl),
MentionName(TextEntityTypeMentionName),
CustomEmoji(TextEntityTypeCustomEmoji),
MediaTimestamp(TextEntityTypeMediaTimestamp),
}
Variants§
Mention
A mention of a user, a supergroup, or a channel by their username
Hashtag
A hashtag text, beginning with “#”
Cashtag
A cashtag text, beginning with “$” and consisting of capital English letters (e.g., “$USD”)
BotCommand
A bot command, beginning with “/”
Url
An HTTP URL
EmailAddress
An email address
PhoneNumber
A phone number
BankCardNumber
A bank card number. The getBankCardInfo method can be used to get information about the bank card
Bold
A bold text
Italic
An italic text
Underline
An underlined text
Strikethrough
A strikethrough text
Spoiler
A spoiler text
Code
Text that must be formatted as if inside a code HTML tag
Pre
Text that must be formatted as if inside a pre HTML tag
PreCode(TextEntityTypePreCode)
Text that must be formatted as if inside pre, and code HTML tags
TextUrl(TextEntityTypeTextUrl)
A text description shown instead of a raw URL
MentionName(TextEntityTypeMentionName)
A text shows instead of a raw mention of the user (e.g., when the user has no username)
CustomEmoji(TextEntityTypeCustomEmoji)
A custom emoji. The text behind a custom emoji must be an emoji. Only premium users can use premium custom emoji
MediaTimestamp(TextEntityTypeMediaTimestamp)
A media timestamp
Trait Implementations§
Source§impl Clone for TextEntityType
impl Clone for TextEntityType
Source§fn clone(&self) -> TextEntityType
fn clone(&self) -> TextEntityType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more