class Tourmaline::MessageEntity

Included Modules

Defined in:

Constant Summary

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

Constructors

Instance Method Summary

Constructor Detail

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

def self.new(pull : JSON::PullParser) #

Instance Method Detail

def bold? #

def bot_command? #

def cashtag? #

def code? #

def email? #

def hashtag? #

def italic? #

def language : String? #

def length : Int64 #

def mention? #

def offset : Int64 #

def phone_number? #

def pre? #

def strikethrough? #

def text_link? #

def text_mention? #

def type : String #

def underline? #

def url : String? #

def url? #

def user : User? #