Skip to content

meinside/telegram-bot-go

Repository files navigation

Telegram Bot API helper for Golang

This package is for building Telegram Bots with or without webhook interface.

View the documentation here.

How to get

$ go get -u github.com/meinside/telegram-bot-go

Usage

See codes in samples/.

Test

With following environment variables:

$ export TOKEN="01234567:abcdefghijklmn_ABCDEFGHIJKLMNOPQRST"
$ export CHAT_ID="-123456789"

# for verbose output messages
$ export VERBOSE=true

run tests with:

$ go test

Not implemented (yet)

Todos

  • (WIP) Add tests for every API method