class Tourmaline::TextQuote

Overview

This object contains information about the quoted part of a message that is replied to by the given message.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(text : String, position : Int32 | Int64, entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity, is_manual : Bool | Nil = nil) #

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

[View source]

Instance Method Detail

def entities : Array(Tourmaline::MessageEntity) #

Optional. Special entities that appear in the quote. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are kept in quotes.


[View source]
def entities=(entities : Array(Tourmaline::MessageEntity)) #

Optional. Special entities that appear in the quote. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are kept in quotes.


[View source]
def is_manual=(is_manual : Bool | Nil) #

Optional. True, if the quote was chosen manually by the message sender. Otherwise, the quote was added automatically by the server.


[View source]
def is_manual? : Bool | Nil #

Optional. True, if the quote was chosen manually by the message sender. Otherwise, the quote was added automatically by the server.


[View source]
def position : Int32 | Int64 #

Approximate quote position in the original message in UTF-16 code units as specified by the sender


[View source]
def position=(position : Int32 | Int64) #

Approximate quote position in the original message in UTF-16 code units as specified by the sender


[View source]
def text : String #

Text of the quoted part of a message that is replied to by the given message


[View source]
def text=(text : String) #

Text of the quoted part of a message that is replied to by the given message


[View source]