smallbot
v1.0.1
Published
Small telegram bot library.
Downloads
4
Readme
SmallBot
Small telegram bot library.
Installation
npm i smallbot
Usage
Init (javascript)
const SmallBot = require('smallbot').default;
const bot = new SmallBot('token');
Init (typescript)
import SmallBot from 'smallbot';
const bot = new SmallBot('token');
Sending requests
bot.<TelegramMethod>()
Return types
Promise<TelegramResult>
- Returned when
ok
istrue
- Returned when
TelegramError
- Raised when
ok
isfalse
- Raised when
Typescript
TelegramError
fromsmallbot/lib/TelegramError
{ TelegramErrorPayload }
fromsmallbot/lib/types
{ TelegramResult }
fromsmallbot/lib/types
{ TelegramMethod }
fromsmallbot/lib/types