View on GitHub

TeleLib

Telegram-API Library, usable in every environment and language. :)

General Code Structure of TeleLib

last things first

TeleLib package

├── [entry file] (Bot, Types and Logger should be exported here as TeleLib object) #[entry file] can vary depending on the language, (e.g. __init__.py in python or index.js in Javascript or index.ts in Typescript)
├── Bot (Bot Package)
├── Logger (Logger Package)
├── telegram (directory for telegram API methods)
│   ├── Methods (Package containing all Telegram API methods)
│   ├── Types (Package containing all Telegram API types + some additional types for TeleLib)
│   ├── types (directory containing all Telegram API types)
├── [test directory] (directory for tests)
├── [examples directory] (to write examples for the users [you can also write examples in the root `examples` directory])

User Experience

Linter

Prettier