Skip to content

Commit

Permalink
Merge branch 'dev' into refeature
Browse files Browse the repository at this point in the history
  • Loading branch information
xTCry authored Feb 27, 2024
2 parents 36ec7ad + 4bf75b8 commit 575f4a1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NestJS Telegraf ![npm](https://img.shields.io/npm/dm/nestjs-telegraf) ![GitHub last commit](https://img.shields.io/github/last-commit/bukhalo/nestjs-telegraf) ![NPM](https://img.shields.io/npm/l/nestjs-telegraf)
# NestJS Telegraf ![npm](https://img.shields.io/npm/dm/@xtcry/nestjs-telegraf) ![GitHub last commit](https://img.shields.io/github/last-commit/xtcry/nestjs-telegraf) ![NPM](https://img.shields.io/npm/l/@xtcry/nestjs-telegraf)

<img align="right" width="95" height="148" title="NestJS logotype"
src="https://nestjs.com/img/logo-small.svg">
Expand Down Expand Up @@ -27,7 +27,7 @@ This package uses the best of the NodeJS world under the hood. [Telegraf](https:
## Installation

```bash
$ npm i nestjs-telegraf telegraf
$ npm i @xtcry/nestjs-telegraf telegraf
```

## Documentation
Expand Down
2 changes: 1 addition & 1 deletion lib/decorators/core/inject-all-bots.decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import { getAllBotsToken } from '../../utils/get-all-bots-token.util';

export type AllBotsMap = Map<string, Telegraf<any>>;

export const InjectAllBots = (): ParameterDecorator =>
export const InjectAllBots = (): ReturnType<typeof Inject> =>
Inject(getAllBotsToken());
2 changes: 1 addition & 1 deletion lib/decorators/core/inject-bot.decorator.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Inject } from '@nestjs/common';
import { getBotToken } from '../../utils';

export const InjectBot = (botName?: string): ParameterDecorator =>
export const InjectBot = (botName?: string): ReturnType<typeof Inject> =>
Inject(getBotToken(botName));
5 changes: 4 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "nestjs-telegraf",
"name": "@xtcry/nestjs-telegraf",
"version": "2.7.0",
"description": "Telegraf module for NestJS",
"keywords": [
Expand Down Expand Up @@ -82,4 +82,4 @@
"telegraf": "^4.0.0",
"typescript": "^4.1.2 || ^5.0.0"
}
}
}

0 comments on commit 575f4a1

Please sign in to comment.