class Tourmaline::MessageEntity

Included Modules

Defined in:

tourmaline/models/message_entity.cr

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

Instance methods inherited from module Tourmaline::Model

client : Tourmaline::Client client, client=(client : Tourmaline::Client) client=, client? : Tourmaline::Client | Nil client?, finish_init(client : Tourmaline::Client) finish_init

Constructor Detail

def self.new(type : String, offset : Int64, length : Int64, url : Nil | String = nil, user : Nil | Tourmaline::User = nil, language : Nil | String = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def bold? #

[View source]
def bot_command? #

[View source]
def cashtag? #

[View source]
def code? #

[View source]
def email? #

[View source]
def hashtag? #

[View source]
def italic? #

[View source]
def language : String | Nil #

[View source]
def length : Int64 #

[View source]
def mention? #

[View source]
def offset : Int64 #

[View source]
def phone_number? #

[View source]
def pre? #

[View source]
def strikethrough? #

[View source]
def text_link? #

[View source]
def text_mention? #

[View source]
def type : String #

[View source]
def underline? #

[View source]
def url : String | Nil #

[View source]
def url? #

[View source]
def user : User | Nil #

[View source]