class Tourmaline::MessageEntity
- Tourmaline::MessageEntity
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
tourmaline/models/message_entity.crConstant 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
- .new(type : String, offset : Int64, length : Int64, url : Nil | String = nil, user : Nil | Tourmaline::User = nil, language : Nil | String = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
- #bold?
- #bot_command?
- #cashtag?
- #code?
- #email?
- #hashtag?
- #italic?
- #language : String | Nil
- #length : Int64
- #mention?
- #offset : Int64
- #phone_number?
- #pre?
- #strikethrough?
- #text_link?
- #text_mention?
- #type : String
- #underline?
- #url : String | Nil
- #url?
- #user : User | Nil
Constructor Detail
def self.new(type : String, offset : Int64, length : Int64, url : Nil | String = nil, user : Nil | Tourmaline::User = nil, language : Nil | String = nil)
#