Registry / messaging / go-telegram-bot-api-telegram-bot-api

go-telegram-bot-api-telegram-bot-api

JSON →
library4.6.4+incompatiblegogounverified

Package tgbotapi provides functions and types for interacting with the Telegram Bot API.

go get github.com/go-telegram-bot-api/telegram-bot-api
INSTALL
IMPORT
SIG · GO-TELEGRAM-BOT-AP
G
go-telegram-bot-api-telegram-bot-api
messaginggov4.6.4+incompatible
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

tgbotapi
github.com/go-telegram-bot-api/telegram-bot-api

Initialize a Telegram bot with a token

package main import ( "log" "github.com/go-telegram-bot-api/telegram-bot-api" ) func main() { bot, err := tgbotapi.NewBotAPI("YOUR_TOKEN") if err != nil { log.Panic(err) } bot.Debug = true log.Printf("Authorized on account %s", bot.Self.UserName) }
Debug
Known issues
breakingVersion 4.6.4+incompatible uses an older API; newer versions may have breaking changes.
fix
Use a newer version like v5 or later for updated API support.
affects: >=4.0.0, <5.0.0
Upgrade
Version history
4.6.4+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
1
Resources
go-telegram-bot-api-telegram-bot-api — go get go-telegram-bot-api-telegram-bot-api · libregistry