npm.io
1.1.7 • Published 4 years ago

teletypes

Licence
MIT
Version
1.1.7
Deps
0
Size
204 kB
Vulns
0
Weekly
0

Teletypes

Machine parsed types for the Telegram Bot API

Self-updating repository with telegram types. 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
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'
}; };

Keywords