class Hamilton::Types::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:

types/text_quote.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

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

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def entities : Array(Hamilton::Types::MessageEntity) | Nil #

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


def entities=(entities : Array(Hamilton::Types::MessageEntity) | Nil) #

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


def is_manual : Bool | Nil #

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


def is_manual=(is_manual : Bool | Nil) #

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


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


def position : Int32 #

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


def position=(position : Int32) #

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


def text : String #

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


def text=(text : String) #

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