{"id":13461888,"url":"https://github.com/depoio/node-telegram-bot","last_synced_at":"2025-03-24T23:31:59.930Z","repository":{"id":34164183,"uuid":"38008205","full_name":"depoio/node-telegram-bot","owner":"depoio","description":"Client wrapper for Telegram Bot API (Under heavy development)","archived":false,"fork":false,"pushed_at":"2016-11-03T07:15:27.000Z","size":860,"stargazers_count":136,"open_issues_count":19,"forks_count":30,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-16T14:49:29.002Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/depoio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-24T20:06:51.000Z","updated_at":"2024-10-25T10:56:10.000Z","dependencies_parsed_at":"2022-09-02T16:02:15.230Z","dependency_job_id":null,"html_url":"https://github.com/depoio/node-telegram-bot","commit_stats":{"total_commits":139,"total_committers":23,"mean_commits":6.043478260869565,"dds":"0.41007194244604317","last_synced_commit":"0abe096364b34469de304c1cc5ec28d8599233ca"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depoio%2Fnode-telegram-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depoio%2Fnode-telegram-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depoio%2Fnode-telegram-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depoio%2Fnode-telegram-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/depoio","download_url":"https://codeload.github.com/depoio/node-telegram-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245372193,"owners_count":20604487,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T12:00:26.500Z","updated_at":"2025-03-24T23:31:59.629Z","avatar_url":"https://github.com/depoio.png","language":"JavaScript","funding_links":[],"categories":["一般机器人（bots）","Bots","Libraries"],"sub_categories":["机器人类库","Bot Libs","Node.js"],"readme":"node-telegram-bot\n=================\n\n[![Join the chat at https://gitter.im/depoio/node-telegram-bot](https://badges.gitter.im/depoio/node-telegram-bot.svg)](https://gitter.im/depoio/node-telegram-bot?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n[![build status](https://img.shields.io/travis/depoio/node-telegram-bot.svg?style=flat-square)](https://travis-ci.org/depoio/node-telegram-bot)[![dependencies](https://img.shields.io/david/depoio/node-telegram-bot.svg?style=flat-square)](https://david-dm.org/depoio/node-telegram-bot)[![node version](https://img.shields.io/node/v/gh-badges.svg?style=flat-square)](https://www.npmjs.com/package/node-telegram-bot)[![npm version](http://img.shields.io/npm/v/gh-badges.svg?style=flat-square)](https://www.npmjs.com/package/node-telegram-bot)\n\n## Changelog\n\n- 0.1.9 Improved error 409 by kaminoo\n- 0.1.8 Timeout defaults to 60000ms\n- 0.1.7 Supports splitting command target (#45)\n- 0.1.6 Fixes #53\n- 0.1.5 Add analytics botan.io\n- 0.1.4 Fixes #48\n- 0.1.2 Merge #40, Use debug for logging\n- 0.1 Setwebhook, disable command parsing \u0026 maxattempts\n- 0.0.19 Added webhook support instead of polling\n- 0.0.18 Merged bug fix\n- 0.0.17 support multiple command arguments\n- 0.0.16 support file id for audio, document, sticker and video\n- 0.0.15 emit command (message that starts with '/')\n- 0.0.14 sendLocation\n- 0.0.13 getUserProfilePhotos\n- 0.0.12 sendDocument\n- 0.0.9 sendAudio\n- 0.0.8 sendPhoto\n- 0.0.7 forwardMessage\n- 0.0.6 sendChatAction\n- 0.0.3 Longpoll\n- 0.0.2 getMessage\n- 0.0.1 getMe\n\n## Documentation\n\nDocumentation is built using jsdoc with DocStrap. More to come (including examples)!\n[Documentation Link](http://depoio.github.io/node-telegram-bot/Bot.html)\n\n## Sending files (including photo, audio, document, video and sticker) \n\nNow only require filepath,\n\n```javascript\n\nbot.sendPhoto({\n  chat_id: USER_ID,\n  caption: 'Telegram Logo',\n  files: {\n    photo: './examples/logo.png'\n  }\n}, function (err, msg) {\n  console.log(err);\n  console.log(msg);\n});\n\n```\n\n\nPreviously, \n\n```javascript\n\nbot.sendPhoto({\n  chat_id: USER_ID,\n  caption: 'Telegram Logo',\n  files: {\n    photo: {\n      filename: './examples/logo.png',\n      stream: fs.createReadStream('./examples/logo.png')\n    }\n  }\n}, function (err, msg) {\n  console.log(err);\n  console.log(msg);\n});\n\n```\n\n\n## Here's an example:\n\n```javascript\n\nvar Bot = require('node-telegram-bot');\n\nvar bot = new Bot({\n  token: 'TOKEN HERE'\n})\n.on('message', function (message) {\n  console.log(message);\n})\n.start();\n\n```\n\n## How to use Botan.io analytics:\n```javascript\n\nvar bot = new Bot({\n  token: 'Telegram token'\n})\n.enableAnalytics('Botan.io token')\n.on('message', function (message) {\n  console.log(message);\n})\n.start();\n\n```\n\n## Credits\n[Sample sound](http://www.bigsoundbank.com/sound-0477-wilhelm-scream.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdepoio%2Fnode-telegram-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdepoio%2Fnode-telegram-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdepoio%2Fnode-telegram-bot/lists"}