class

AppPusher::TelegramPushService

Inherits Reference < Object

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

Constants

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

Constructors

new(bot_token : String)
Source

Instance methods

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

推送:代码异常信息

Source
add_task(target_chat_id_or_list : String | Array(String), message : String, format : TextFormat = :text)

推送:普通信息

Source
bot_username
Source
statistics
Source

Nested types