Comparing version 2.0.3-rc.1 to 2.0.3
{ | ||
"name": "puregram", | ||
"version": "2.0.3-rc.1", | ||
"version": "2.0.3", | ||
"description": "Powerful Node.js package written on TypeScript that allows you to work with Telegram API", | ||
@@ -5,0 +5,0 @@ "main": "lib/index", |
@@ -1,11 +0,33 @@ | ||
# puregram | ||
<p align='center'> | ||
<img src='https://github.com/nitreojs/puregram/blob/master/docs/logo.png' /> | ||
</p> | ||
`puregram` is a powerful Node.js package that allows you to easily interact with [Telegram API](https://core.telegram.org/bots/api) 🚀 | ||
<p align='center'> | ||
<b>Powerful</b> | ||
<a href='nodejs.org'>Node.js</a> | ||
package that allows you to | ||
<b>easily</b> | ||
interact with | ||
<a src='https://core.telegram.org/bots/api'>Telegram API</a> | ||
🚀 | ||
</p> | ||
| [🤖 Examples](https://github.com/nitreojs/puregram/tree/master/docs/examples) | [📖 Documentation](https://github.com/nitreojs/puregram/tree/master/docs) | | ||
| ----------------------------------------------------------------------------- | ------------------------------------------------------------------------- | | ||
<table align='center'> | ||
<tr> | ||
<th> | ||
<a href='https://github.com/nitreojs/puregram/tree/master/docs/examples'> | ||
🤖 Examples | ||
</a> | ||
</th> | ||
<th> | ||
<a href='https://github.com/nitreojs/puregram/tree/master/docs'> | ||
📖 Documentation | ||
</a> | ||
</th> | ||
</tr> | ||
</table> | ||
## Features | ||
* 100% [Telegram Bot API](https://core.telegram.org/bots/api) coverage | ||
* 100% [**Telegram Bot API**](https://core.telegram.org/bots/api) coverage | ||
* Works with JavaScript and TypeScript | ||
@@ -17,12 +39,7 @@ * Has **57** tests and all of them passes every build | ||
### Yarn | ||
```bash | ||
yarn add puregram | ||
```sh | ||
$ yarn add puregram | ||
$ npm i -S puregram | ||
``` | ||
### NPM | ||
```bash | ||
npm i -S puregram | ||
``` | ||
## Example usage | ||
@@ -37,7 +54,21 @@ | ||
telegram.updates.on('message', (context) => context.send('Hi!')); | ||
telegram.updates.on( | ||
'message', | ||
(context) => context.send('Hello, World!') | ||
); | ||
telegram.updates.on( | ||
'callback_query', | ||
(context) => ( | ||
context.message.editMessageText('*You just clicked the inline button!*', { | ||
parse_mode: 'Markdown' | ||
}) | ||
) | ||
); | ||
telegram.updates.startPolling().catch(console.error); | ||
``` | ||
[🤖 Click to see more examples!](https://github.com/nitreojs/puregram/tree/master/docs/examples) | ||
## Community | ||
@@ -50,2 +81,3 @@ | ||
- [**@puregram/session**](https://github.com/nitreojs/puregram/tree/master/packages/session): Simple implementation of sessions | ||
- [**@puregram/utils**](https://github.com/nitreojs/puregram/tree/master/packages/utils): _Almost_ useful utilities | ||
@@ -52,0 +84,0 @@ ## Thanks to |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1533261
716
40442
1
88
3
2