Bots are special Telegram accounts designed to handle messages automatically. Users can interact with bots by sending them command messages in private or group chats. These accounts serve as an interface for code running somewhere on your server.
Telebot offers a convenient wrapper to Bots API, so you shouldn't even care about networking at all. Here is an example "helloworld" bot, written with telebot:
Telebot offers a convenient wrapper to Bots API, so you shouldn't even
care about networking at all. You may install it with
go get github.com/tucnak/telebot
(after setting up your `GOPATH` properly).
Since you are probably
hosting your bot in a public repository, we'll add an environment
variable for the token in this example. Please set it with
export BOT_TOKEN=<yourtokenhere>
Here is an example "helloworld" bot, written with telebot: