Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

telegram-bot-api

> 编程语言
Open source

Golang bindings for the Telegram Bot API

6.4K stars0 likes2 views
WebsiteGitHub

About

Golang bindings for the Telegram Bot API

Golang bindings for the Telegram Bot API

All methods are fairly self-explanatory, and reading the godoc page should explain everything. If something isn't clear, open an issue or submit a pull request.

There are more tutorials and high-level information on the website, go-telegram-bot-api.dev.

The scope of this project is just to provide a wrapper around the API without any additional features. There are other projects for creating something with plugins and command handlers without having to design all that yourself.

Join the development group if you want to ask questions or discuss development.

Example

First, ensure the library is installed and up to date by running go get -u github.com/go-telegram-bot-api/telegram-bot-api/v5.

This is a very simple bot that just displays any gotten updates, then replies it to that chat.

…

If you need to use webhooks (if you wish to run on Google App Engine), you may use a slightly different method.

…

If you need, you may generate a self-signed certificate, as this requires HTTPS / TLS. The above example tells Telegram that this is your certificate and that it should be trusted, even though it is not properly signed.

openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 3560 -subj "//O=Org\CN=Test" -nodes

Now that Let's Encrypt is available, you may wish to generate your free TLS certificate there.

Issues· 174 open

View all issuesOpen on GitHub
  • #622

    Bot api 6.4 Topics support.

    Updated Dec 17, 2025
  • #641

    iOS: Wrong aspect ratio of video

    Updated Oct 11, 2025
  • #701

    Show Alert

    Updated Oct 1, 2025
  • #785

    There is no field in the essence

    Updated Aug 4, 2025
  • #741

    How to get channel subscribers ?

    Updated Aug 3, 2025
  • #784

    CustomEmojiID

    Updated Jul 30, 2025
  • #781

    Error writing score as scrore

    Updated Jun 19, 2025
  • #777

    is there NewRefund?

    Updated May 1, 2025
  • #774

    How to send message to exact topic in supergroup?

    Updated Apr 28, 2025
  • #207

    Deal with useless StopReceivingUpdates method

    help wantedUpdated Apr 4, 2025

> Tags

Gogolanghacktoberfesttelegram

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 24, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言