{"id":48181942,"url":"https://github.com/sergeiivankov/crypto-bot-api","last_synced_at":"2026-04-04T17:46:04.396Z","repository":{"id":74638643,"uuid":"438771087","full_name":"sergeiivankov/crypto-bot-api","owner":"sergeiivankov","description":"Written in TypeScript up-to-date client library for Crypto Pay API provided by Telegram CryptoBot","archived":false,"fork":false,"pushed_at":"2025-07-12T07:26:56.000Z","size":992,"stargazers_count":35,"open_issues_count":1,"forks_count":9,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-10-22T00:30:32.489Z","etag":null,"topics":["api-client","crypto","crypto-bot","crypto-bot-api","crypto-pay","crypto-pay-api","cryptocurrency","cryptocurrency-processing","exchange","payment-processing","telegram-bot","the-open-network","ton"],"latest_commit_sha":null,"homepage":"https://sergeiivankov.github.io/crypto-bot-api/","language":"TypeScript","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/sergeiivankov.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-15T20:57:58.000Z","updated_at":"2025-09-26T10:39:13.000Z","dependencies_parsed_at":"2025-03-24T17:39:59.529Z","dependency_job_id":null,"html_url":"https://github.com/sergeiivankov/crypto-bot-api","commit_stats":{"total_commits":37,"total_committers":1,"mean_commits":37.0,"dds":0.0,"last_synced_commit":"a60e8d8584e6d29b8dbf3dd3119e18d26b74e88a"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/sergeiivankov/crypto-bot-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeiivankov%2Fcrypto-bot-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeiivankov%2Fcrypto-bot-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeiivankov%2Fcrypto-bot-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeiivankov%2Fcrypto-bot-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sergeiivankov","download_url":"https://codeload.github.com/sergeiivankov/crypto-bot-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeiivankov%2Fcrypto-bot-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31407651,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["api-client","crypto","crypto-bot","crypto-bot-api","crypto-pay","crypto-pay-api","cryptocurrency","cryptocurrency-processing","exchange","payment-processing","telegram-bot","the-open-network","ton"],"created_at":"2026-04-04T17:46:01.257Z","updated_at":"2026-04-04T17:46:04.386Z","avatar_url":"https://github.com/sergeiivankov.png","language":"TypeScript","readme":"# Crypto Bot API - client library for Crypto Pay API\n\nWritten in TypeScript up-to-date client library for Crypto Pay API provided by Telegram [CryptoBot](https://t.me/CryptoBot).\n\n## Installing\n\nUsing npm/yarn:\n```bash\n$ npm install crypto-bot-api\n```\n\n```bash\n$ yarn add crypto-bot-api\n```\n\nFor browsers use bundles from `dist` directory or add package to your project dependencies and import it.\n\n## Usage\n\nIn Node.js:\n\n```javascript\nconst CryptoBotAPI = require('crypto-bot-api');\n\nconst client = new CryptoBotAPI('1234:AAA...AAA');\n\nconst me = await client.getMe();\nconsole.log(me);\n```\n\nIn browsers:\n\n```html\n\u003cscript src=\"crypto-bot-api.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  var client = new CryptoBotAPI('1234:AAA...AAA');\n\n  client.getMe().then(function(me) {\n    console.log(me);\n  });\n\u003c/script\u003e\n```\n\n**Important: at the time of publication of version 0.3.6 (Jul 12, 2025), API servers do not return header Access-Control-Allow-Origin, which allows make requests to API from third-party domains, so client request from website environment won't work (but its work in browser extensions, Electron and similar apps)**\n\nMore usage examples see in [examples](https://github.com/sergeiivankov/crypto-bot-api/tree/main/examples) project directory.\n\n## Receiving updates\n\nCrypto Pay API support events by sending webhooks requests. To handle webhooks request library proposes to use [creating Node.js built-in HTTP or HTTPS server](https://sergeiivankov.github.io/crypto-bot-api/classes/ClientEmitter.html#createServer) or [using Express.js-like middleware API](https://sergeiivankov.github.io/crypto-bot-api/classes/ClientEmitter.html#middleware). See [examples](https://github.com/sergeiivankov/crypto-bot-api/tree/main/examples) with names starts with `webhooks-`.\n\n*Note: you need enable webhooks in CryptoBot app settings, if you want to use self-signed certificate you must uploat it in CryptoBot API application settings*\n\n## Documentation\n\nLibrary documentation can be found in [repository GitHub page](https://sergeiivankov.github.io/crypto-bot-api/).\n\nFor Node.js usage, we advise you to start studying documentation with library default exported [ClientEmitter class](https://sergeiivankov.github.io/crypto-bot-api/classes/ClientEmitter.html).\n\nFor browsers usage, we advise you to start studying documentation with library default exported for browsers [Client class](https://sergeiivankov.github.io/crypto-bot-api/classes/Client.html).\n\n## Building\n\nFiles for Node.js compiled to `lib` directory. Browsers bundles compiled to `dist` directory.\n\n```bash\n$ git clone https://github.com/sergeiivankov/crypto-bot-api\n$ cd crypto-bot-api\n$ npm i\n$ npm run build-docs # To build library documentation\n$ npm run build-lib # To build for Node.js\n$ npm run build-dist # To build for Browsers\n$ npm run build # To build all\n```\n\nAlso, project have `watch` commands to using it in development:\n```bash\n$ npm run watch-docs # To watch build library documentation\n$ npm run watch-lib # To watch build for Node.js\n$ npm run watch-dist # To watch build for Browsers\n$ npm run watch # To watch all\n```\n\n## Resources\n\n* [Documentation](https://sergeiivankov.github.io/crypto-bot-api/)\n* [Examples](https://github.com/sergeiivankov/crypto-bot-api/tree/main/examples)\n* [Changelog](https://github.com/sergeiivankov/crypto-bot-api/blob/main/changelog.md)\n* [Backend CryptoBot API description](https://help.crypt.bot/crypto-pay-api)\n\n## Code quality\n\nTo maintain high quality of the code and bring source code to a consistent form, project use `eslint` linter and has high documentation requirements. If you want to make a pull request, check that documentation matches your changes and `eslint` does not signal errors with command:\n\n```bash\n$ npm run lint\n```\n\n## Supported environments\n\n- \\\u003e= Node.js 12\n- \\\u003e= Chrome 32\n- \\\u003e= Firefox 29\n- \\\u003e= Edge 12\n- \\\u003e= Safari 8\n- \\\u003e= Safari on iOS 8\n- \\\u003e Android Browser 4.4.4\n\n## License\n\n[MIT](https://github.com/sergeiivankov/crypto-bot-api/blob/main/license)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergeiivankov%2Fcrypto-bot-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsergeiivankov%2Fcrypto-bot-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergeiivankov%2Fcrypto-bot-api/lists"}