class Hamilton::Types::ReplyParameters

Overview

Describes reply parameters for the message that is being sent.

Included Modules

Defined in:

types/reply_parameters.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 allow_sending_without_reply : Bool | Nil #

Pass True if the message should be sent even if the specified message to be replied to is not found. Always False for replies in another chat or forum topic. Always True for messages sent on behalf of a business account.


def allow_sending_without_reply=(allow_sending_without_reply : Bool | Nil) #

Pass True if the message should be sent even if the specified message to be replied to is not found. Always False for replies in another chat or forum topic. Always True for messages sent on behalf of a business account.


def chat_id : String | Int32 | Nil #

If the message to be replied to is from a different chat, unique identifier for the chat or username of the channel (in the format @channelusername). Not supported for messages sent on behalf of a business account and messages from channel direct messages chats.


def chat_id=(chat_id : String | Int32 | Nil) #

If the message to be replied to is from a different chat, unique identifier for the chat or username of the channel (in the format @channelusername). Not supported for messages sent on behalf of a business account and messages from channel direct messages chats.


def checklist_task_id : Int32 | Nil #

Identifier of the specific checklist task to be replied to.


def checklist_task_id=(checklist_task_id : Int32 | Nil) #

Identifier of the specific checklist task to be replied to.


def message_id : Int32 #

Identifier of the message that will be replied to in the current chat, or in the chat chat_id if it is specified.


def message_id=(message_id : Int32) #

Identifier of the message that will be replied to in the current chat, or in the chat chat_id if it is specified.


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 quote : String | Nil #

Quoted part of the message to be replied to; 0-1024 characters after entities parsing. The quote must be an exact substring of the message to be replied to, including bold, italic, underline, strikethrough, spoiler, and custom_emoji entities. The message will fail to send if the quote isn't found in the original message.


def quote=(quote : String | Nil) #

Quoted part of the message to be replied to; 0-1024 characters after entities parsing. The quote must be an exact substring of the message to be replied to, including bold, italic, underline, strikethrough, spoiler, and custom_emoji entities. The message will fail to send if the quote isn't found in the original message.


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

A JSON-serialized list of special entities that appear in the quote. It can be specified instead of quote_parse_mode.


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

A JSON-serialized list of special entities that appear in the quote. It can be specified instead of quote_parse_mode.


def quote_parse_mode : String | Nil #

Mode for parsing entities in the quote.


def quote_parse_mode=(quote_parse_mode : String | Nil) #

Mode for parsing entities in the quote.


def quote_position : Int32 | Nil #

Position of the quote in the original message in UTF-16 code units.


def quote_position=(quote_position : Int32 | Nil) #

Position of the quote in the original message in UTF-16 code units.