1.0.1 • Published 7 years ago
smallbot v1.0.1
SmallBot
Small telegram bot library.
Installation
npm i smallbotUsage
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
okistrue
- Returned when
TelegramError- Raised when
okisfalse
- Raised when
Typescript
TelegramErrorfromsmallbot/lib/TelegramError{ TelegramErrorPayload }fromsmallbot/lib/types{ TelegramResult }fromsmallbot/lib/types{ TelegramMethod }fromsmallbot/lib/types