Added telegram version

This commit is contained in:
Artyom Belousov 2021-06-06 12:22:36 +03:00
parent cc2058090c
commit e69884ce52
9 changed files with 111 additions and 24 deletions

View file

@ -0,0 +1,16 @@
package telegram
import (
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api"
)
type Sender struct {
API *tgbotapi.BotAPI
}
func (h *Sender) Send(userId int64, message string) {
msg := tgbotapi.NewMessage(userId, message)
msg.DisableWebPagePreview = true
h.API.Send(msg)
}