{"_id":"@api555/node-telegram-bot-api","name":"@api555/node-telegram-bot-api","dist-tags":{"latest":"0.59.0"},"versions":{"0.59.0":{"name":"@api555/node-telegram-bot-api","version":"0.59.0","description":"Telegram Bot API","main":"./index.js","directories":{"example":"examples","test":"test"},"keywords":["telegram","telegram bot","telegram bot api","bot"],"scripts":{"gen-doc":"echo 'WARNING: `npm run gen-doc` is deprecated. Use `npm run doc` instead.' && npm run doc","doc":"jsdoc2md --files src/telegram.js --template doc/api.hbs > doc/api.md","build":"babel -d ./lib src","prepublishOnly":"npm run build && npm run gen-doc","eslint":"eslint ./src ./test ./examples","mocha":"mocha","pretest":"npm run build","test":"npm run eslint && istanbul cover ./node_modules/mocha/bin/_mocha"},"author":{"name":"Yago Pérez","email":"yagoperezs@gmail.com"},"license":"MIT","engines":{"node":">=0.12"},"dependencies":{"array.prototype.findindex":"^2.0.2","bl":"^1.2.3","debug":"^3.2.7","eventemitter3":"^3.0.0","file-type":"^3.9.0","mime":"^1.6.0","pump":"^2.0.0","request":"^2.83.0","request-promise":"^4.2.2"},"devDependencies":{"babel-cli":"^6.26.0","babel-eslint":"^8.0.3","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-es2015-destructuring":"^6.23.0","babel-plugin-transform-es2015-parameters":"^6.24.1","babel-plugin-transform-es2015-shorthand-properties":"^6.24.1","babel-plugin-transform-es2015-spread":"^6.22.0","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-strict-mode":"^6.24.1","babel-preset-es2015":"^6.24.1","babel-register":"^6.26.0","concat-stream":"^1.6.0","eslint":"^2.13.1","eslint-config-airbnb":"^6.2.0","eslint-plugin-mocha":"^4.11.0","is":"^3.2.1","is-ci":"^1.0.10","istanbul":"^1.1.0-alpha.1","jsdoc-to-markdown":"^3.0.3","mocha":"^3.5.3","mocha-lcov-reporter":"^1.3.0","node-static":"^0.7.10"},"repository":{"type":"git","url":"git+https://github.com/gitapi555/node-telegram-bot-api.git"},"bugs":{"url":"https://github.com/gitapi555/node-telegram-bot-api/issues"},"homepage":"https://github.com/gitapi555/node-telegram-bot-api","gitHead":"d401c3fd12e9c954e168afe420bd6a99049f6486","_id":"@api555/node-telegram-bot-api@0.59.0","_nodeVersion":"12.8.0","_npmVersion":"6.10.2","dist":{"integrity":"sha512-rVjDdCJu3IEucZRTlHWB35xORNuS7eA5eTyOFjEUAe0LS/1mbV2HhKKHUl54yIdshpEdwuIk9RQiWB3P6ARCtg==","shasum":"41b313158836d97fa7a24990ed14d5563c2b5926","tarball":"https://registry.npmjs.org/@api555/node-telegram-bot-api/-/node-telegram-bot-api-0.59.0.tgz","fileCount":25,"unpackedSize":417176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDE49QAvzjEID45rZKT/oGT3P3dolOkvKxyGC34xTpRDQIgFtDyb36hGm5pvX35PFZo6Xq3M83gpK1Qwrj++HQ4I7k="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi3gUEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqjig/9Hk0Zpj8I0u7RHrUsUB+dqGXWArKdYESt+JpubZtt0GdbN5F1\r\n7D39O116gdf/GNm9oZFRV8WbcxyWGtp6oJl+9tIRhYnE/g3XaOOPwAXv6AAm\r\nTc+54g0V5VlS2JMt5qrNdEKiXlAmlT9IksDodcSyriVBD6QEUbrpDA+Fsbg1\r\njisWGZkXJCbqjwTON1S/uOG0tWRY8dJZtddHjLsHFvwL3jMqgYcL/UQZdLGU\r\nmx0/ENkcUOfHxrl1SoRoCU0uJgx8WwMFAoYxV5jaVfJGTtwOYHg7Qj9eXteu\r\nQoWFOUjQQUz/62pJsHO6+/Bxj7o0u/3akJfNkhwXH4ffaxdJkb90tHryTqWM\r\n7M2a2lLy+DE60LGK+HUEgieX4wRGaKBs9NUVRNiyHXoWQ1+VtEfi5MODKnT0\r\nHiAgLpDQC92OOsNJSNBAhn9XKqnbKEE24fky3uT89f6F2I76NJLoZ2JfWCpj\r\n8I1Pw/7rS4Tm3vbl3ctxjgd9KtrTLvnnO2e09TDO61C/ZGdUIb1EF8PdOqb5\r\nncUqZKx5giYmznSSpBZkw0RTXBnUsrDBjPPsbQYShoWgp7pIYiBdYOxZBx7W\r\n39xevBEIy20zCe1sbMKWlCO3M6zoV7KEY9msyLn/F5FusCjb32FVJxB49fpJ\r\nSghcyHURLUMJA9yTI0WOuHYt5zYQhVxYPbU=\r\n=Ab+4\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"api555","email":"api555@mail.chungyo.net"},"maintainers":[{"name":"api555","email":"api555@mail.chungyo.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-telegram-bot-api_0.59.0_1658717444192_0.8360920135999232"},"_hasShrinkwrap":false}},"time":{"created":"2022-07-25T02:50:44.121Z","0.59.0":"2022-07-25T02:50:44.396Z","modified":"2022-07-25T02:50:44.595Z"},"maintainers":[{"name":"api555","email":"api555@mail.chungyo.net"}],"description":"Telegram Bot API","homepage":"https://github.com/gitapi555/node-telegram-bot-api","keywords":["telegram","telegram bot","telegram bot api","bot"],"repository":{"type":"git","url":"git+https://github.com/gitapi555/node-telegram-bot-api.git"},"author":{"name":"Yago Pérez","email":"yagoperezs@gmail.com"},"bugs":{"url":"https://github.com/gitapi555/node-telegram-bot-api/issues"},"license":"MIT","readme":"<h1 align=\"center\">Node.js Telegram Bot API</h1>\n\n<div align=\"center\">\n\nNode.js module to interact with the official [Telegram Bot API](https://core.telegram.org/bots/api).\n\n\n[![Bot API](https://img.shields.io/badge/Bot%20API-v.6.1-00aced.svg?style=flat-square&logo=telegram)](https://core.telegram.org/bots/api)\n[![npm package](https://img.shields.io/npm/v/node-telegram-bot-api?logo=npm&style=flat-square)](https://www.npmjs.org/package/node-telegram-bot-api)\n[![Build Status](https://img.shields.io/travis/yagop/node-telegram-bot-api/master?style=flat-square&logo=travis)](https://travis-ci.org/yagop/node-telegram-bot-api)\n[![Coverage Status](https://img.shields.io/codecov/c/github/yagop/node-telegram-bot-api?style=flat-square&logo=codecov)](https://codecov.io/gh/yagop/node-telegram-bot-api)\n\n[![https://telegram.me/node_telegram_bot_api](https://img.shields.io/badge/💬%20Telegram-Channel-blue.svg?style=flat-square)](https://telegram.me/node_telegram_bot_api)\n[![https://telegram.me/ntbasupport](https://img.shields.io/badge/💬%20Telegram-Group-blue.svg?style=flat-square)](https://telegram.me/ntbasupport)\n[![https://telegram.me/Yago_Perez](https://img.shields.io/badge/💬%20Telegram-Yago_Perez-blue.svg?style=flat-square)](https://telegram.me/Yago_Perez)\n\n</div>\n\n## Install\n\n```sh\nnpm i node-telegram-bot-api\n```\n\n## Usage\n\n```js\nconst TelegramBot = require('node-telegram-bot-api');\n\n// replace the value below with the Telegram token you receive from @BotFather\nconst token = 'YOUR_TELEGRAM_BOT_TOKEN';\n\n// Create a bot that uses 'polling' to fetch new updates\nconst bot = new TelegramBot(token, {polling: true});\n\n// Matches \"/echo [whatever]\"\nbot.onText(/\\/echo (.+)/, (msg, match) => {\n  // 'msg' is the received Message from Telegram\n  // 'match' is the result of executing the regexp above on the text content\n  // of the message\n\n  const chatId = msg.chat.id;\n  const resp = match[1]; // the captured \"whatever\"\n\n  // send back the matched \"whatever\" to the chat\n  bot.sendMessage(chatId, resp);\n});\n\n// Listen for any kind of message. There are different kinds of\n// messages.\nbot.on('message', (msg) => {\n  const chatId = msg.chat.id;\n\n  // send a message to the chat acknowledging receipt of their message\n  bot.sendMessage(chatId, 'Received your message');\n});\n```\n\n## Documentation\n\n* [Usage][usage]\n* [Examples][examples]\n* [Tutorials][tutorials]\n* [Help Information][help]\n* API Reference [api-release] / [development][api-dev] / [experimental][api-experimental])\n* [Contributing to the Project][contributing]\n* [Experimental Features][experimental]\n\n_**Note**: Development is done against the **master** branch.\nCode for the latest release resides on the **release** branch.\nExperimental features reside on the **experimental** branch._\n\n\n## Community\n\nWe thank all the developers in the Open-Source community who continuously\ntake their time and effort in advancing this project.\nSee our [list of contributors][contributors].\n\nWe have a [Telegram channel][tg-channel] where we post updates on\nthe Project. Head over and subscribe!\n\nWe also have a [Telegram  group][tg-group] to discuss issues related to this library.\n\nSome things built using this library that might interest you:\n\n* [tgfancy](https://github.com/GochoMugo/tgfancy): A fancy, higher-level wrapper for Telegram Bot API\n* [node-telegram-bot-api-middleware](https://github.com/idchlife/node-telegram-bot-api-middleware): Middleware for node-telegram-bot-api\n* [teleirc](https://github.com/FruitieX/teleirc): A simple Telegram ↔ IRC gateway\n* [bot-brother](https://github.com/SerjoPepper/bot-brother): Node.js library to help you easily create telegram bots\n* [redbot](https://github.com/guidone/node-red-contrib-chatbot): A Node-RED plugin to create telegram bots visually\n* [node-telegram-keyboard-wrapper](https://github.com/alexandercerutti/node-telegram-keyboard-wrapper): A wrapper to improve keyboards structures creation through a more easy-to-see way (supports Inline Keyboards, Reply Keyboard, Remove Keyboard and Force Reply)\n* [beetube-bot](https://github.com/kodjunkie/beetube-bot): A telegram bot for music, videos, movies, EDM tracks, torrent downloads, files and more.\n\n\n## Contributors\n\n<p align=\"center\">\n  <a href=\"https://github.com/yagop/node-telegram-bot-api/graphs/contributors\">\n    <img src=\"https://contrib.rocks/image?repo=yagop/node-telegram-bot-api\" />\n  </a>\n</p>\n\n## License\n\n**The MIT License (MIT)**\n\nCopyright © 2019 Yago\n\n[usage]:https://github.com/yagop/node-telegram-bot-api/tree/master/doc/usage.md\n[examples]:https://github.com/yagop/node-telegram-bot-api/tree/master/examples\n[help]:https://github.com/yagop/node-telegram-bot-api/tree/master/doc/help.md\n[tutorials]:https://github.com/yagop/node-telegram-bot-api/tree/master/doc/tutorials.md\n[api-dev]:https://github.com/yagop/node-telegram-bot-api/tree/master/doc/api.md\n[api-release]:https://github.com/yagop/node-telegram-bot-api/tree/release/doc/api.md\n[api-experimental]:https://github.com/yagop/node-telegram-bot-api/tree/experimental/doc/api.md\n[contributing]:https://github.com/yagop/node-telegram-bot-api/tree/master/CONTRIBUTING.md\n[contributors]:https://github.com/yagop/node-telegram-bot-api/graphs/contributors\n[experimental]:https://github.com/yagop/node-telegram-bot-api/tree/master/doc/experimental.md\n[tg-channel]:https://telegram.me/node_telegram_bot_api\n[tg-group]:https://telegram.me/ntbasupport\n","readmeFilename":"README.md"}