0.2.1 • Published 2 years ago

@botcreate/telegram-sdk v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

telegram-sdk

Telegram Bot API: all methods and objects. 100% typed.

How to use

Install it from npm.

npm i @botcreate/telegram-sdk

Import Telegram from lib. Init it as a new class, provide Bot Token. Use available typed methods.

import { Telegram } from '@botcreate/telegram-sdk'

const telegramClient = new Telegram('<your bot token>')

const me = await telegramClient.getMe()
if (me instanceof Error) {
    // Some error
}

const botId = me.id
const botName = me.first_name

Changelog

See CHANGELOG.md

0.2.1

2 years ago

0.2.0

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago