0

[WIP] Partial bot skeleton, non-functional though

This commit is contained in:
eleksir
2024-02-09 19:40:54 +03:00
parent ea4652cefa
commit 9eac899a5c
1460 changed files with 625051 additions and 492 deletions

14
telegram.go Normal file
View File

@@ -0,0 +1,14 @@
package main
import (
"github.com/NicoNex/echotron/v3"
)
// telega основная горутинка, реализующая бота.
func telega(c myConfig) {
tg = echotron.NewAPI(c.Telegram.Token)
for u := range echotron.PollingUpdates(c.Telegram.Token) {
telegramMsgParser(u)
}
}