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
#
["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)
#
(type, offset, length, url = nil, user = nil, language = nil)
.new(pull : JSON::PullParser)
#
(pull : JSON::PullParser)
Methods#
#bold?
#
#bot_command?
#
#cashtag?
#
#code?
#
#email?
#
#hashtag?
#
#italic?
#
#language : String?
#
: String?
#length : Int64
#
: Int64
#mention?
#
#offset : Int64
#
: Int64
#phone_number?
#
#pre?
#
#strikethrough?
#
#text_link?
#
#text_mention?
#
#type : String
#
: String
#underline?
#
#url : String?
#
: String?
#url?
#
#user : User?
#
: User?