class AppPusher::TelegramPushService
- AppPusher::TelegramPushService
- Reference
- Object
Overview
参考1: https://core.telegram.org/bots 参考2: https://core.telegram.org/bots/api
Defined in:
app_pusher/push.crConstant Summary
-
Log =
::Log.for("push")
-
MAX_RETRY_NUMBER =
3
Constructors
Instance Method Summary
-
#add_task(target_chat_id : String, e : Exception, additional_data = nil)
推送:代码异常信息
-
#add_task(target_chat_id_or_list : String | Array(String), message : String, format : TextFormat = :text)
推送:普通信息
- #bot_username : String
- #statistics : AppPusher::TelegramPushService::Statistics
Constructor Detail
Instance Method Detail
def add_task(target_chat_id_or_list : String | Array(String), message : String, format : TextFormat = :text)
#
推送:普通信息