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 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 in UTF-16 code units to the start of the entity

Length of the entity in UTF-16 code units

For “text_link” only, url that will be opened after user taps on the text

For “text_mention” only, the mentioned user

Trait Implementations

impl Debug for MessageEntity
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for MessageEntity
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for MessageEntity

impl Sync for MessageEntity