bloaterbot

This commit is contained in:
Watn3y 2023-03-05 04:20:17 +01:00
parent 52f69d518a
commit d53b439455
15 changed files with 452 additions and 0 deletions

13
botIO/sending.go Normal file
View file

@ -0,0 +1,13 @@
package botIO
import (
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
"log"
)
func SendMessage(message tgbotapi.MessageConfig, bot *tgbotapi.BotAPI) {
_, err := bot.Send(message)
if err != nil {
log.Printf("Failed to send message: %v\n", err)
}
}