class AppPusher::TelegramPushService

Overview

参考1: https://core.telegram.org/bots 参考2: https://core.telegram.org/bots/api

Defined in:

app_pusher/push.cr

Constant Summary

Log = ::Log.for("push")
MAX_RETRY_NUMBER = 3

Constructors

Instance Method Summary

Constructor Detail

def self.new(bot_token : String) #

[View source]

Instance Method Detail

def add_task(target_chat_id : String, e : Exception, additional_data = nil) #

推送:代码异常信息


[View source]
def add_task(target_chat_id_or_list : String | Array(String), message : String, format : TextFormat = :text) #

推送:普通信息


[View source]
def bot_username : String #

[View source]

[View source]