# smallbot

> Small telegram bot library.

Latest version **1.0.1** (published 2019-04-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install smallbot
pnpm add smallbot
yarn add smallbot
bun add smallbot
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-04-08 |
| First published | 2019-04-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | YouTwitFace |
| Maintainers | youtwitface |
| Keywords | telegram |

## Links

- npm: https://www.npmjs.com/package/smallbot
- Repository: https://github.com/YouTwitFace/smallbot
- Homepage: https://github.com/YouTwitFace/smallbot#readme
- Issues: https://github.com/YouTwitFace/smallbot/issues
- npm.io page: https://npm.io/package/smallbot

## Dependencies (2)

- [request](https://npm.io/package/request.md) ^2.88.0
- [request-promise](https://npm.io/package/request-promise.md) ^4.2.4

## Recent versions

- 1.0.1 (latest) — 2019-04-08
- 1.0.0 — 2019-04-08

## README

# SmallBot

> Small telegram bot library.

## Installation

```sh
npm i smallbot
```

## Usage

### Init (javascript)

```js
const SmallBot = require('smallbot').default;
const bot = new SmallBot('token');
```

### Init (typescript)

```ts
import SmallBot from 'smallbot';
const bot = new SmallBot('token');
```

### Sending requests

`bot.<TelegramMethod>()`

### Return types

- `Promise<TelegramResult>`

  - Returned when `ok` is `true`

- `TelegramError`

  - Raised when `ok` is `false`

## Typescript

- `TelegramError` from `smallbot/lib/TelegramError`
- `{ TelegramErrorPayload }` from `smallbot/lib/types`
- `{ TelegramResult }` from `smallbot/lib/types`
- `{ TelegramMethod }` from `smallbot/lib/types`

---
_Source: https://npm.io/package/smallbot · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
