Tourmaline::MessageEntity
Inherits Tourmaline::Model < JSON::Serializable < Reference < Object
Constants
MENTION_TYPES = ["mention", "text_mention", "hashtag", "cashtag", "bot_command", "url", "email", "phone_number", "bold", "italic", "code", "pre", "text_link", "underline", "strikethrough", "spoiler", "custom_emoji"] of ::String
Constructors
new(pull : JSON::PullParser)
Sourcenew(type, offset : Int32 = 0, length : Int32 = 0, url : Nil | String = nil, user : Nil | Tourmaline::User = nil, language : Nil | String = nil, custom_emoji_id : Nil | String = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
bold?
Sourcebot_command?
Sourcecashtag?
Sourcecode?
Sourcecustom_emoji?
Sourcecustom_emoji_id
Sourceemail?
Sourcehashtag?
Sourceitalic?
Sourcelanguage
Sourcelength
Sourcemention?
Sourceoffset
Sourcephone_number?
Sourcepre?
Sourcespoiler?
Sourcestrikethrough?
Sourcetext_link?
Sourcetext_mention?
Sourcetype
Sourceunderline?
Sourceurl
Sourceurl?
Sourceuser
Sourceuser=(user : User | Nil)
Source