Skip to content

MessageEntity

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) #

.new(pull : JSON::PullParser) #

Methods#

#bold? #

#bot_command? #

#cashtag? #

#code? #

#email? #

#hashtag? #

#italic? #

#language : String? #

#length : Int64 #

#mention? #

#offset : Int64 #

#phone_number? #

#pre? #

#strikethrough? #

#text_link? #

#text_mention? #

#type : String #

#underline? #

#url : String? #

#url? #

#user : User? #