bloaterbot
This commit is contained in:
parent
52f69d518a
commit
d53b439455
15 changed files with 452 additions and 0 deletions
13
botIO/sending.go
Normal file
13
botIO/sending.go
Normal 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)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue