https://github.com/ethosa/telenim
The telegram framework written in Nim
https://github.com/ethosa/telenim
async metaprogramming nim-lang telegram telegram-api
Last synced: about 1 year ago
JSON representation
The telegram framework written in Nim
- Host: GitHub
- URL: https://github.com/ethosa/telenim
- Owner: Ethosa
- License: mit
- Created: 2020-06-25T16:30:17.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-26T09:59:35.000Z (almost 6 years ago)
- Last Synced: 2025-04-09T16:18:22.922Z (about 1 year ago)
- Topics: async, metaprogramming, nim-lang, telegram, telegram-api
- Language: Nim
- Homepage:
- Size: 73.2 KB
- Stars: 10
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Telenim
The telegram framework written in Nim.
[](https://github.com/ellerbrock/open-source-badges/)
[](https://github.com/Ethosa/yukiko/blob/master/nim-lang.svg)
[](https://github.com/Ethosa/telenim/blob/master/LICENSE)
[](https://wakatime.com/badge/github/Ethosa/telenim)
[](https://github.com/Ethosa/telenim/blob/master/tests)
[](https://ethosa.github.io/telenim/telenim.html)
## Install
- `nimble install https://github.com/Ethosa/telenim`
## Features
- only stdlib was used;
- telegram types support;
- handlers;
## Simple usage
```nim
import telenim
var api = TelegramApi("878812:lashfbajsb")
api@update(event): # handles any telegram update
# `event` is an Update object.
echo update.update_id
api.listen()
```
## F.A.Q.
*Q*: Where I can see examples?
*A*: You can see it [here](https://github.com/Ethosa/telenim/blob/master/tests)
*Q*: Where can I read the docs?
*A*: You can read docs [here](https://ethosa.github.io/telenim/telenim.html)
Copyright 2020 Ethosa