telegram-typings

Telegram typings for TypeScript and Flowtype to create bots

MIT 9 个版本
安装
npm install telegram-typings
yarn add telegram-typings
pnpm add telegram-typings
bun add telegram-typings
README

telegram-typings

Full types parsed from core.telegram.org/bots/api for TypeScript and Flowtype

Installation

Just install it as your dependency and use

npm install --save telegram-typings
// typescript
import { User, Chat, Voice } from 'telegram-typings'

Flow

# Search in flow-typed
flow-typed search telegram-typings

# if not found, copy content of ./javascript/index.js.flow to your flow-typed
wget https://raw.githubusercontent.com/sergeysova/telegram-typings/master/javascript/index.js.flow -O ./flow-typed/npm/telegram-typings_vx.x.x.js
# next use as normal module
// flow
import type { User, Chat, Voice } from 'telegram-typings'
版本列表
5.0.0 2021-01-14
4.0.0-beta 2018-08-02
3.6.1 2018-05-04
3.6.0 2018-04-18
0.3.5-3 2018-01-07
0.3.5-2 2017-12-30
0.3.5-1 2017-12-27
0.3.5-0 2017-12-25
0.0.0-reserved 2017-12-16