From da7a3ddc7b1eb5c06b1a08e5a1ca79fa290e801c Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 21 Jun 2020 20:07:37 +0200 Subject: [PATCH] test --- bot.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bot.go b/bot.go index fe0a93c..fbca447 100644 --- a/bot.go +++ b/bot.go @@ -48,3 +48,15 @@ func botQuery(q *tb.Query) { func botText(m *tb.Message) { PrintText(m) } + +func sendChat(chatID int64, text string) { + opt := tb.SendOptions{ + ParseMode: tb.ModeDefault, + } + + ch := tb.Chat{ + ID: chatID, + } + _, err := bot.Send(&ch, c.Text, &opt) + +}