-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(telegraf): update to v4.0.0 * chore(lock): update package-lock * chore(deps): remove telegraf from dependencies * chore(readme): update installation command * chore(deps): add telegraf to dev dependencies
- Loading branch information
Showing
21 changed files
with
185 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
import { createMissedListenerDecorator } from '../../utils'; | ||
import { createListenerDecorator } from '../../utils'; | ||
|
||
/** | ||
* Cashtag handling. | ||
* | ||
* @see https://telegraf.js.org/#/?id=cashtag | ||
*/ | ||
export const Cashtag = createMissedListenerDecorator<[string | string[]]>( | ||
'cashtag', | ||
); | ||
export const Cashtag = createListenerDecorator('cashtag'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
import { createMissedListenerDecorator } from '../../utils'; | ||
import { createListenerDecorator } from '../../utils'; | ||
|
||
/** | ||
* Registers middleware for handling messages with email entity. | ||
* | ||
* @see https://telegraf.js.org/#/?id=telegraf-email | ||
*/ | ||
export const Email = createMissedListenerDecorator<[string | string[]]>( | ||
'email', | ||
); | ||
export const Email = createListenerDecorator('email'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
import { createMissedListenerDecorator } from '../../utils'; | ||
import { createListenerDecorator } from '../../utils'; | ||
|
||
/** | ||
* Hashtag handling. | ||
* | ||
* @see https://telegraf.js.org/#/?id=hashtag | ||
*/ | ||
export const Hashtag = createMissedListenerDecorator<[string | string[]]>( | ||
'hashtag', | ||
); | ||
export const Hashtag = createListenerDecorator('hashtag'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
import { createMissedListenerDecorator } from '../../utils'; | ||
import { HearsTriggers } from 'telegraf/typings/composer'; | ||
import { createListenerDecorator } from '../../utils'; | ||
|
||
/** | ||
* Registers middleware for handling inline_query actions with regular expressions. | ||
* | ||
* @see https://telegraf.js.org/#/?id=inlinequery | ||
*/ | ||
export const InlineQuery = createMissedListenerDecorator< | ||
[HearsTriggers<unknown>] | ||
>('inlineQuery'); | ||
export const InlineQuery = createListenerDecorator('inlineQuery'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
import { createMissedListenerDecorator } from '../../utils'; | ||
import { createListenerDecorator } from '../../utils'; | ||
|
||
/** | ||
* Mention handling. | ||
* | ||
* @see https://telegraf.js.org/#/?id=mention | ||
*/ | ||
export const Mention = createMissedListenerDecorator<[string | string[]]>( | ||
'mention', | ||
); | ||
export const Mention = createListenerDecorator('mention'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
import { createMissedListenerDecorator } from '../../utils'; | ||
import { createListenerDecorator } from '../../utils'; | ||
|
||
/** | ||
* Phone number handling. | ||
* | ||
* @see https://telegraf.js.org/#/?id=phone | ||
*/ | ||
export const Phone = createMissedListenerDecorator<[string | string[]]>( | ||
'phone', | ||
); | ||
export const Phone = createListenerDecorator('phone'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { createMissedListenerDecorator } from '../../utils'; | ||
import { createListenerDecorator } from '../../utils'; | ||
|
||
/** | ||
* Handler for /settings command. | ||
* | ||
* @see https://telegraf.js.org/#/?id=settings | ||
*/ | ||
export const Settings = createMissedListenerDecorator<[]>('settings'); | ||
export const Settings = createListenerDecorator('settings'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
import { createMissedListenerDecorator } from '../../utils'; | ||
import { createListenerDecorator } from '../../utils'; | ||
|
||
/** | ||
* Registers middleware for handling messages with text_link entity. | ||
* | ||
* @see https://telegraf.js.org/#/?id=telegraf-textlink | ||
*/ | ||
export const TextLink = createMissedListenerDecorator<[string | string[]]>( | ||
'textLink', | ||
); | ||
export const TextLink = createListenerDecorator('textLink'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
import { createMissedListenerDecorator } from '../../utils'; | ||
import { createListenerDecorator } from '../../utils'; | ||
|
||
/** | ||
* Registers middleware for handling messages with text_mention entity. | ||
* | ||
* @see https://telegraf.js.org/#/?id=telegraf-textlink | ||
*/ | ||
export const TextMention = createMissedListenerDecorator<[string | string[]]>( | ||
'textMention', | ||
); | ||
export const TextMention = createListenerDecorator('textMention'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { createMissedListenerDecorator } from '../../utils'; | ||
import { createListenerDecorator } from '../../utils'; | ||
|
||
/** | ||
* Registers middleware for handling messages with url entity. | ||
* | ||
* @see https://telegraf.js.org/#/?id=telegraf-url | ||
*/ | ||
export const Url = createMissedListenerDecorator<[string | string[]]>('url'); | ||
export const Url = createListenerDecorator('url'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
import { createListenerDecorator } from '../../utils'; | ||
import { Scenes } from 'telegraf'; | ||
|
||
export const SceneEnter = createListenerDecorator('enter'); | ||
export const SceneEnter = createListenerDecorator<Scenes.BaseScene<never>>( | ||
'enter', | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
import { createListenerDecorator } from '../../utils'; | ||
import { Scenes } from 'telegraf'; | ||
|
||
export const SceneLeave = createListenerDecorator('leave'); | ||
export const SceneLeave = createListenerDecorator<Scenes.BaseScene<never>>( | ||
'leave', | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
663ebf1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: