From 059fa78e3274d6e75430736faec35250c7b15c1c Mon Sep 17 00:00:00 2001 From: lulzette Date: Fri, 19 Mar 2021 15:56:23 +0300 Subject: [PATCH] comments --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 779e72e..2fd33cc 100644 --- a/main.go +++ b/main.go @@ -43,7 +43,7 @@ func contains(s []interface{}, e int64) bool { } return false } - +//from tg to crisp func replyToUser(update *tgbotapi.Update) { if update.Message.ReplyToMessage == nil { msg := tgbotapi.NewMessage(update.Message.Chat.ID, "请回复一个消息") @@ -80,7 +80,7 @@ func replyToUser(update *tgbotapi.Update) { msg := tgbotapi.NewMessage(update.Message.Chat.ID, "回复成功!") bot.Send(msg) } - +//from crisp to tg func sendMsgToAdmins(text string, WebsiteID string, SessionID string) { for _, id := range config.Get("admins").([]interface{}) { msg := tgbotapi.NewMessage(int64(id.(int)), text)