JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1794
  • Score
    100M100P100Q136522F
  • License MIT

Telegram typings for TypeScript and Flowtype to create bots

Package Exports

  • telegram-typings

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (telegram-typings) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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'