Struct telegram_typings::MessageEntity
[−]
[src]
pub struct MessageEntity { pub type_tl: String, pub offset: i64, pub length: i64, pub url: Option<String>, pub user: Option<Box<User>>, }
This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.
Fields
type_tl: String
Type of the entity. Can be mention (@username), hashtag, bot_command, url, email, bold (bold text), italic (italic text), code (monowidth string), pre (monowidth block), text_link (for clickable text URLs), text_mention (for users without usernames) See https://telegram.org/blog/edit#new-mentions
offset: i64
Offset in UTF-16 code units to the start of the entity
length: i64
Length of the entity in UTF-16 code units
url: Option<String>
For “text_link” only, url that will be opened after user taps on the text
user: Option<Box<User>>
For “text_mention” only, the mentioned user
Trait Implementations
impl Debug for MessageEntity
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for MessageEntity
[src]
fn clone(&self) -> MessageEntity
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more