Actualizacion de seguridad
This commit is contained in:
26
node_modules/telegraf/readme.md
generated
vendored
26
node_modules/telegraf/readme.md
generated
vendored
@@ -1,5 +1,5 @@
|
||||

|
||||
[](https://core.telegram.org/bots/api)
|
||||

|
||||
[](https://core.telegram.org/bots/api)
|
||||
[](https://www.npmjs.com/package/telegraf)
|
||||
[](https://www.npmjs.com/package/telegraf)
|
||||
[](https://travis-ci.org/telegraf/telegraf)
|
||||
@@ -8,30 +8,30 @@
|
||||
|
||||
## Introduction
|
||||
|
||||
Bots are special [Telegram](https://telegram.org) accounts designed to handle messages automatically.
|
||||
Users can interact with bots by sending them command messages in private or group chats.
|
||||
These accounts serve as an interface for code running somewhere on your server.
|
||||
Bots are special [Telegram](https://telegram.org) accounts designed to handle messages automatically. Users can interact with bots by sending them command messages in private or group chats. These accounts serve as an interface for code running somewhere on your server.
|
||||
|
||||
### Features
|
||||
|
||||
- Full [Telegram Bot API 4.7](https://core.telegram.org/bots/api) support
|
||||
- Full [Telegram Bot API 6.0](https://core.telegram.org/bots/api) support
|
||||
- [Telegram Payment Platform](https://telegram.org/blog/payments)
|
||||
- [HTML5 Games](https://core.telegram.org/bots/api#games)
|
||||
- [Inline mode](https://core.telegram.org/bots/api#inline-mode)
|
||||
- Incredibly fast
|
||||
- [now](https://now.sh)/[Firebase](https://firebase.google.com/products/functions/)/[Glitch](https://dashing-light.glitch.me)/[Heroku](https://devcenter.heroku.com/articles/getting-started-with-nodejs#introduction)/[AWS **λ**](https://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-handler.html)/Whatever ready
|
||||
- [Vercel](https://vercel.com)/[Firebase](https://firebase.google.com/products/functions/)/[Glitch](https://dashing-light.glitch.me)/[Heroku](https://devcenter.heroku.com/articles/getting-started-with-nodejs#introduction)/[AWS **λ**](https://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-handler.html)/Whatever ready
|
||||
- `http/https/fastify/Connect.js/express.js` compatible webhooks
|
||||
- Easy to extend
|
||||
- `TypeScript` typings
|
||||
|
||||
### Installation
|
||||
|
||||
```bash
|
||||
npm install telegraf
|
||||
```
|
||||
$ npm install telegraf
|
||||
```
|
||||
|
||||
or using `yarn`:
|
||||
```
|
||||
$ yarn add telegraf
|
||||
|
||||
```bash
|
||||
yarn add telegraf
|
||||
```
|
||||
|
||||
### Documentation
|
||||
@@ -41,7 +41,7 @@ $ yarn add telegraf
|
||||
### Examples
|
||||
|
||||
```js
|
||||
const Telegraf = require('telegraf')
|
||||
const { Telegraf } = require('telegraf')
|
||||
|
||||
const bot = new Telegraf(process.env.BOT_TOKEN)
|
||||
bot.start((ctx) => ctx.reply('Welcome!'))
|
||||
@@ -52,7 +52,7 @@ bot.launch()
|
||||
```
|
||||
|
||||
```js
|
||||
const Telegraf = require('telegraf')
|
||||
const { Telegraf } = require('telegraf')
|
||||
|
||||
const bot = new Telegraf(process.env.BOT_TOKEN)
|
||||
bot.command('oldschool', (ctx) => ctx.reply('Hello'))
|
||||
|
||||
Reference in New Issue
Block a user