class Turquoise::Jobs::SendChatCompletion

Included Modules

Extended Modules

Defined in:

turquoise/jobs/send_chat_completion.cr

Constant Summary

PARAMETERS = [{name: chat_id, value: , type: Int64, method_suffix: int64}, {name: text, value: , type: String, method_suffix: string}, {name: message_id, value: , type: Int64, method_suffix: int64}, {name: from_name, value: "", type: String, method_suffix: string}] of Nil

Constructors

Class Method Summary

Macro Summary

Instance Method Summary

Constructor Detail

def self.new(chat_id : Int64, text : String, message_id : Int64, from_name : String = "") #

def self.new #

Class Method Detail

def self.job_name #

[View source]

Macro Detail

macro param(parameter) #

[View source]

Instance Method Detail

def act_as_group #

Add more information when in group chats


[View source]
def after_hook #

def before_hook #

def build_job_run #

def chat_id : Int64 #

[View source]
def chat_id=(value : Int64) : Int64 #

[View source]
def chat_id? : Int64 | Nil #

[View source]
def from_name : String #

[View source]
def from_name=(value : String) : String #

[View source]
def from_name? : String | Nil #

[View source]
def message_id : Int64 #

[View source]
def message_id=(value : Int64) : Int64 #

[View source]
def message_id? : Int64 | Nil #

[View source]
def perform #
Description copied from class Mosquito::Job

abstract, override in a Job descendant to do something productive


[View source]
def reschedule_interval(retry_count) #

[View source]
def text : String #

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

[View source]
def text? : String | Nil #

[View source]
def vars_from(config : Hash(String, String)) #