Skip to content

class Tourmaline::MessageEntity
inherits Reference #

Included modules

JSON::Serializable Tourmaline::Model

Constants#

MENTION_TYPES = ["mention", "text_mention", "hashtag", "cashtag", "bot_command", "url", "email", "phone_number", "bold", "italic", "code", "pre", "text_link", "underline", "strikethrough"] of ::String #

Class methods#

.new(type, offset, length, url = nil, user = nil, language = nil) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#bold? #

View source

#bot_command? #

View source

#cashtag? #

View source

#code? #

View source

#email? #

View source

#hashtag? #

View source

#italic? #

View source

#language : String? #

View source

#length : Int64 #

View source

#mention? #

View source

#offset : Int64 #

View source

#phone_number? #

View source

#pre? #

View source

#strikethrough? #

View source

#text_link? #

View source

#text_mention? #

View source

#type : String #

View source

#underline? #

View source

#url? #

View source

#user : User? #

View source