class Hamilton::Types::InputChecklist

Overview

Describes a checklist to create.

Included Modules

Defined in:

types/input_checklist.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 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 others_can_add_tasks : Bool | Nil #

Pass True if other users can add tasks to the checklist.


def others_can_add_tasks=(others_can_add_tasks : Bool | Nil) #

Pass True if other users can add tasks to the checklist.


def others_can_mark_tasks_as_done : Bool | Nil #

Pass True if other users can mark tasks as done or not done in the checklist.


def others_can_mark_tasks_as_done=(others_can_mark_tasks_as_done : Bool | Nil) #

Pass True if other users can mark tasks as done or not done in the checklist.


def parse_mode : String #

Mode for parsing entities in the title.


def parse_mode=(parse_mode : String) #

Mode for parsing entities in the title.


List of 1-30 tasks in the checklist.


def tasks=(tasks : Array(Hamilton::Types::InputChecklistTask)) #

List of 1-30 tasks in the checklist.


def title : String #

Title of the checklist; 1-255 characters after entities parsing.


def title=(title : String) #

Title of the checklist; 1-255 characters after entities parsing.


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

List of special entities that appear in the title, which can be specified instead of parse_mode. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are allowed.


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

List of special entities that appear in the title, which can be specified instead of parse_mode. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are allowed.