{"id":15043924,"url":"https://github.com/0x467/nestjs-telegram","last_synced_at":"2025-04-11T01:12:37.494Z","repository":{"id":42995109,"uuid":"196605236","full_name":"0x467/nestjs-telegram","owner":"0x467","description":"🤖 A NestJS Telegram module for using the Telegram Bot API","archived":false,"fork":false,"pushed_at":"2024-04-25T07:04:37.000Z","size":1269,"stargazers_count":98,"open_issues_count":10,"forks_count":25,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T00:48:31.082Z","etag":null,"topics":["bot","nest","nestjs","telegram","telegram-api","telegram-bot-api"],"latest_commit_sha":null,"homepage":"","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/0x467.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-12T15:43:09.000Z","updated_at":"2025-03-11T23:58:06.000Z","dependencies_parsed_at":"2024-06-18T18:36:08.634Z","dependency_job_id":"db725724-d798-46d7-be7d-ebf2e5e7bb9c","html_url":"https://github.com/0x467/nestjs-telegram","commit_stats":null,"previous_names":["jmcdo29/nestjs-telegram","evilsprut/nestjs-telegram","hypeertech/nestjs-telegram"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x467%2Fnestjs-telegram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x467%2Fnestjs-telegram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x467%2Fnestjs-telegram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x467%2Fnestjs-telegram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0x467","download_url":"https://codeload.github.com/0x467/nestjs-telegram/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247685627,"owners_count":20979085,"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":["bot","nest","nestjs","telegram","telegram-api","telegram-bot-api"],"created_at":"2024-09-24T20:49:49.929Z","updated_at":"2025-04-11T01:12:37.479Z","avatar_url":"https://github.com/0x467.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://nestjs.com/\" target=\"blank\"\u003e\u003cimg src=\"https://nestjs.com/img/logo_text.svg\" width=\"320\" alt=\"Nest Logo\" /\u003e\u003c/a\u003e\u003cimg src=\"https://cdn.pixabay.com/photo/2016/12/21/17/11/signe-1923369_960_720.png\" alt=\"plus\" width=\"100\"\u003e \u003ca href=\"https://telegram.org\" target=\"blank\"\u003e\u003cimg src=\"https://telegram.org/img/t_logo.png\" width =\"140\" alt=\"Telegram Logo\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n  \n  \u003ch1 align=\"center\"\u003eA \u003ca href=\"http://nestjs.com\" target=\"blank\"\u003eNestJS\u003c/a\u003e service wrapper for \u003ca href=\"https://telegram.org\" target=\"blank\"\u003eTelegram\u003c/a\u003e bots!\n  \u003c/h1\u003e\n  \u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/prettier/prettier\"\u003e\u003cimg src=\"https://img.shields.io/badge/code_style-prettier-purple.svg?style=flat\"/\u003e\u003c/a\u003e\n  \u003ca href=\"http://opensource.org/licenses/MIT\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-brightgreen.svg\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://travis-ci.org/jmcdo29/nestjs-telegram\"\u003e\u003cimg src=\"https://travis-ci.org/jmcdo29/nestjs-telegram.svg?branch=master\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://coveralls.io/github/jmcdo29/nestjs-telegram?branch=master\"\u003e\u003cimg src=\"https://coveralls.io/repos/github/jmcdo29/nestjs-telegram/badge.svg?branch=master\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/facebook/jest\"\u003e\u003cimg src=\"https://img.shields.io/badge/tested_with-jest-99424f.svg\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://dependabot.com\"\u003e\u003cimg src=\"https://api.dependabot.com/badges/status?host=github\u0026repo=jmcdo29/nestjs-telegram\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://snyk.io/test/github/jmcdo29/nestjs-telegram?targetFile=package.json\"\u003e\u003cimg src=\"https://snyk.io/test/github/jmcdo29/nestjs-telegram/badge.svg?targetFile=package.json\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\u003c/p\u003e\n\n## Description\n\n[Telegram](https://telegram.org) API wrapper for the Telegram Bots API made to work with the [Nest](https://github.com/nestjs/nest) framework.\n\n## Installation\n\n```bash\n$ npm install nestjs-telegram\n```\n\n## Using the Module\n\n```typescript\n// Inside of your module imports\n@Module({\n  imports: [TelegramModule.forRoot({\n    botKey: 'YourBotApiToken'\n  })]\n})\n\n// Or async\n@Module({\n  imports: [\n    TelegramModule.forRootAsync({\n      useFactory: async (configService: ConfigService) =\u003e ({\n        botKey: configService.get('Telegram_API_Key')\n      }),\n      inject: [ConfigService]\n    })\n  ],\n})\n```\n\nIn your service class you can inject the service like so and then use it in any function as you would any other service\n```typescript\n@Injectable()\nexport class MyService {\n\n  constructor(private readonly telegram: TelegramService) {}\n\n  testBot(): Observable\u003cTelegramUser\u003e {\n    return this.telegram.getMe();\n  }\n}\n```\n\nCurrently, the service only returns `Observables` as the `HttpModule` does. If you want to use `Promises` just call `.toPromise()` on the function.\n\n## Support\n\nIf any bugs are found in the API wrapper, please open an issue on GitHub, or a Pull Request if you want to fix it yourself! Please be as explicit as possible and provide a minimum reproducing repository if at all possible, as it helps track down what went wrong.\n\n## Documentation\n\nAll documentation for this wrapper comes from the [Telegram Bot API documentation](https://core.telegram.org/bots/api), if there are any typos, please let me know or open a PR to fix it.\n\n## Todo\n\n* Implement Telegram Passport methods\n* Implement Telegram Inline mode options\n\n## Stay in touch\n\n- Author - [Jay McDoniel](https://github.com/jmcdo29)\n\n## License\n\nNestjs-telegram is [MIT licensed](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0x467%2Fnestjs-telegram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0x467%2Fnestjs-telegram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0x467%2Fnestjs-telegram/lists"}