(client: any, peer: string, msg: Api.Message, target: SignTarget)
| 492 | await this.sendViaBot(conf.botToken, conf.pushChatId, summary); |
| 493 | sent = true; |
| 494 | } catch (e) { |
| 495 | console.error("[CheckIn] Bot push failed:", e); |
| 496 | } |
| 497 | } |
| 498 | if (!sent) { |
| 499 | const peer = conf.logChat || fallbackPeer; |
| 500 | if (peer) { |
| 501 | try { |
| 502 | await client.sendMessage(peer, { message: summary, parseMode: "html", linkPreview: false }); |
| 503 | sent = true; |
| 504 | } catch (e) { |
| 505 | console.error("[CheckIn] Userbot push failed:", e); |
| 506 | } |
| 507 | } |
no test coverage detected