0.2.1 • Published 3 years ago

@botcreate/telegram-sdk v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 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

3 years ago

0.2.0

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago