Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

puregram

Package Overview
Dependencies
Maintainers
1
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

puregram - npm Package Compare versions

Comparing version 2.0.3-rc.1 to 2.0.3

lib/hear/src/types.d.ts

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc