teletypes
TypeScript icon, indicating that this package has built-in type declarations

1.1.7 • Public • Published

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'
}; };

Package Sidebar

Install

npm i teletypes

Weekly Downloads

0

Version

1.1.7

License

MIT

Unpacked Size

208 kB

Total Files

10

Last publish

Collaborators

  • teselka