Skip to content

Commit

Permalink
Added section about TypeScript support to README
Browse files Browse the repository at this point in the history
  • Loading branch information
acran committed Feb 8, 2019
1 parent 9115b00 commit 76a2aae
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,20 @@ api.getMe()
});
```

## TypeScript support

This package comes with type declarations included and is ready to be used in TypeScript projects too:

```typescript
import TelegramBotApi from 'telegram-bot-api';

let api = new TelegramBotApi({
token: '<PUT YOUR TOKEN HERE>'
});
```

Supporting editors will then show available autocompletions and type annotations and type check your code.

## Supported methods

For method parameters and description, please refer to official documentation
Expand Down

0 comments on commit 76a2aae

Please sign in to comment.