https://github.com/koorgoo/telegram
Telegram Bot API client
https://github.com/koorgoo/telegram
api bot telegram
Last synced: 5 months ago
JSON representation
Telegram Bot API client
- Host: GitHub
- URL: https://github.com/koorgoo/telegram
- Owner: koorgoo
- License: mit
- Created: 2017-07-11T01:18:38.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-12-20T09:37:56.000Z (over 7 years ago)
- Last Synced: 2025-05-14T02:41:21.742Z (about 1 year ago)
- Topics: api, bot, telegram
- Language: Go
- Homepage: https://core.telegram.org/bots/api
- Size: 29.3 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### telegram
`telegram` is a simple Telegram Bot API client.
#### Principles
> Good design is honest.
> Dieter Rams
Types must be clear about its fields' type and optionality. Because of this some
ids are int64. And some fields are pointers to bool, int, or string.
Types in the package explicitly mirror types of
[Telegram Bot API](https://core.telegram.org/bots/api#available-types).
#### Installation
```
go get -u github.com/koorgoo/telegram
```
#### Examples
- [How to send a message](examples/sendmessage.go)
- [How to receive updates using channel](examples/updates.go)
- [How to handle commands from updates](examples/commands.go)