# teletypes

> Half-machine parsed types for the Telegram Bot API

Latest version **1.1.7** (published 2022-06-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install teletypes
pnpm add teletypes
yarn add teletypes
bun add teletypes
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.7 |
| Published | 2022-06-29 |
| First published | 2022-06-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 203.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Teselka |
| Maintainers | teselka |
| Keywords | telegram, teletypes, telegram-bots, telegram-bot, bot, types, typings, api |

## Links

- npm: https://www.npmjs.com/package/teletypes
- Repository: https://github.com/Teselka/teletypes
- Homepage: https://github.com/Teselka/teletypes#readme
- Issues: https://github.com/Teselka/teletypes/issues
- npm.io page: https://npm.io/package/teletypes

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.1.7 (latest) — 2022-06-29
- 1.1.4 — 2022-06-29
- 1.1.3 — 2022-06-25
- 1.1.2 — 2022-06-25
- 1.1.1 — 2022-06-24
- 1.1.0 — 2022-06-20
- 1.0.9 — 2022-06-20
- 1.0.8 — 2022-06-20
- 1.0.7 — 2022-06-20
- 1.0.6 — 2022-06-20
- 1.0.5 — 2022-06-20
- 1.0.4 — 2022-06-20
- 1.0.3 — 2022-06-20
- 1.0.2 — 2022-06-19
- 1.0.1 — 2022-06-19
- … 1 more at https://npm.io/package/teletypes/versions

## README

## Teletypes
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.

### Getting started
1. Install package from npm `npm install teletypes`
2. See usage below

#### Simple usage example
```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'
}; };
```

---
_Source: https://npm.io/package/teletypes · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
