This commit is contained in:
shoopea 2020-06-21 20:07:37 +02:00
parent 98ce6a06e4
commit da7a3ddc7b

12
bot.go
View File

@ -48,3 +48,15 @@ func botQuery(q *tb.Query) {
func botText(m *tb.Message) { func botText(m *tb.Message) {
PrintText(m) 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)
}