teletypes
Version:
Half-machine parsed types for the Telegram Bot API
27 lines (21 loc) • 616 B
Markdown
Machine parsed types for the Telegram Bot API
Self-updating repository with telegram [types](https://core.telegram.org/bots/api).
You can open an issue if there any issues with this repository.
1. Install package from npm `npm install teletypes`
2. See usage below
```ts
import { TelegramTypes as T, TelegramMethods as M } from 'teletypes'
const msg: T.Message = {
message_id: 0,
date: 0,
chat: { id: 0, types: 'yes' }
};
const fn: M.getMe = () => { return {
id: 0,
is_bot: true,
first_name: 'yes'
}; };
```