Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 2.9% on proxy.golang.org
Top 1.2% dependent packages on proxy.golang.org
Top 1.3% dependent repos on proxy.golang.org
Top 6.1% forks on proxy.golang.org
Top 1.8% docker downloads on proxy.golang.org

proxy.golang.org : github.com/mymmrac/telego

Package telego provides one-to-one Telegram Bot API method & types. Telego features all methods and types described in official Telegram documentation (https://core.telegram.org/bots/api). It achieves this by generating methods and types from docs (generation is in internal/generator package). The main goal was and is to create a one-to-one library, so that if you know how Telegram bots work, you will immediately know how to implement that in Go using Telego. All types named and contain the same information as documented by Telegram, for methods it's exactly the same. However, some minor differences may be present (like use of interfaces or combined types). Also, all generated codes have the same description as in Telegram docs, so there is actually no need to go to docs (but still, be careful as it is not a full copy of docs due to text only limitation). Telego was also created to simplify work with a Telegram API, so some additional methods for more convenient usage located in long_polling.go and webhook.go and telegoutil package. When you are working with things like chat ID which can be an integer or string Telego provides combined types: or input files that can be URL, file ID or actual file data: you will specify only one of the fields and Telego will figure out what to do with that. For more flexibility, file data for InputFile are provided via simple interface: os.File already implements this interface, so you can use it directly. Most of the examples can be seen in examples folder. Simple echo bot: This bot will send the same messages as you sent to him.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/mymmrac/telego
Keywords: bot, bot-api, bot-framework, go, golang, telego, telegram, telegram-api, telegram-bot, telegram-bot-api
License: MIT
Latest release: 2 months ago
First release: almost 3 years ago
Namespace: github.com/mymmrac
Dependent packages: 18
Dependent repositories: 16
Stars: 165 on GitHub
Forks: 12 on GitHub
Docker dependents: 8
Docker downloads: 9,747
See more repository details: repos.ecosyste.ms
Funding links: https://patreon.com/mymmrac
Last synced: 1 day ago

    Loading...
    Readme
    Loading...