diff --git a/lib/decorators/action.decorator.ts b/lib/decorators/action.decorator.ts index a6c7a99..e54ace0 100644 --- a/lib/decorators/action.decorator.ts +++ b/lib/decorators/action.decorator.ts @@ -17,11 +17,3 @@ export interface ActionOptions { export const Action = (triggers: TelegrafActionTriggers): MethodDecorator => { return SetMetadata(DECORATORS.ACTION, { triggers }); }; - -/** - * Registers middleware for handling callback_data actions with regular expressions. - * - * @see https://telegraf.js.org/#/?id=action - * @deprecated since v2, use Action decorator instead. - */ -export const TelegrafAction = Action; diff --git a/lib/decorators/cashtag.decorator.ts b/lib/decorators/cashtag.decorator.ts index e85efb3..b98b2da 100644 --- a/lib/decorators/cashtag.decorator.ts +++ b/lib/decorators/cashtag.decorator.ts @@ -15,11 +15,3 @@ export interface CashtagOptions { export const Cashtag = (cashtag: TelegrafCashtagCashtag): MethodDecorator => { return SetMetadata(DECORATORS.CASHTAG, { cashtag }); }; - -/** - * Cashtag handling. - * - * @see https://telegraf.js.org/#/?id=cashtag - * @deprecated since v2, use Cashtag decorator instead. - */ -export const TelegrafCashtag = Cashtag; diff --git a/lib/decorators/command.decorator.ts b/lib/decorators/command.decorator.ts index 6100612..2fb6e7a 100644 --- a/lib/decorators/command.decorator.ts +++ b/lib/decorators/command.decorator.ts @@ -15,11 +15,3 @@ export interface CommandOptions { export const Command = (commands: TelegrafCommandCommands): MethodDecorator => { return SetMetadata(DECORATORS.COMMAND, { commands }); }; - -/** - * Command handling. - * - * @see https://telegraf.js.org/#/?id=command - * @deprecated since v2, use Command decorator instead. - */ -export const TelegrafCommand = Command; diff --git a/lib/decorators/entity.decorator.ts b/lib/decorators/entity.decorator.ts index 53be71f..7c16011 100644 --- a/lib/decorators/entity.decorator.ts +++ b/lib/decorators/entity.decorator.ts @@ -20,11 +20,3 @@ export interface EntityOptions { export const Entity = (entity: TelegrafEntityEntity): MethodDecorator => { return SetMetadata(DECORATORS.ENTITY, { entity }); }; - -/** - * Entity handling. - * - * @see https://telegraf.js.org/#/?id=entity - * @deprecated since v2, use Entity decorator instead. - */ -export const TelegrafEntity = Entity; diff --git a/lib/decorators/game-query.decorator.ts b/lib/decorators/game-query.decorator.ts index c9d240b..dd1138c 100644 --- a/lib/decorators/game-query.decorator.ts +++ b/lib/decorators/game-query.decorator.ts @@ -9,11 +9,3 @@ import { DECORATORS } from '../telegraf.constants'; export const GameQuery = (): MethodDecorator => { return SetMetadata(DECORATORS.GAME_QUERY, {}); }; - -/** - * Registers middleware for handling callback_data actions with game query. - * - * @see https://telegraf.js.org/#/?id=inlinequery - * @deprecated since v2, use Action decorator instead. - */ -export const TelegrafGameQuery = GameQuery; diff --git a/lib/decorators/hashtag.decorator.ts b/lib/decorators/hashtag.decorator.ts index 88e03cb..9269411 100644 --- a/lib/decorators/hashtag.decorator.ts +++ b/lib/decorators/hashtag.decorator.ts @@ -15,11 +15,3 @@ export interface HashtagOptions { export const Hashtag = (hashtag: TelegrafHashtagHashtag): MethodDecorator => { return SetMetadata(DECORATORS.HASHTAG, { hashtag }); }; - -/** - * Hashtag handling. - * - * @see https://telegraf.js.org/#/?id=hashtag - * @deprecated since v2, use Hashtag decorator instead. - */ -export const TelegrafHashtag = Hashtag; diff --git a/lib/decorators/hears.decorator.ts b/lib/decorators/hears.decorator.ts index ecb7c56..6e62bdd 100644 --- a/lib/decorators/hears.decorator.ts +++ b/lib/decorators/hears.decorator.ts @@ -17,11 +17,3 @@ export interface HearsOptions { export const Hears = (triggers: TelegrafHearsTriggers): MethodDecorator => { return SetMetadata(DECORATORS.HEARS, { triggers: triggers }); }; - -/** - * Registers middleware for handling text messages. - * - * @see https://telegraf.js.org/#/?id=hears - * @deprecated since v2, use Hears decorator instead. - */ -export const TelegrafHears = Hears; diff --git a/lib/decorators/help.decorator.ts b/lib/decorators/help.decorator.ts index ced12b1..159a5c5 100644 --- a/lib/decorators/help.decorator.ts +++ b/lib/decorators/help.decorator.ts @@ -9,11 +9,3 @@ import { DECORATORS } from '../telegraf.constants'; export const Help = (): MethodDecorator => { return SetMetadata(DECORATORS.HELP, {}); }; - -/** - * Handler for /help command. - * - * @see https://telegraf.js.org/#/?id=help - * @deprecated since v2, use Help decorator instead. - */ -export const TelegrafHelp = Help; diff --git a/lib/decorators/inline-query.decorator.ts b/lib/decorators/inline-query.decorator.ts index 4345d1b..2979722 100644 --- a/lib/decorators/inline-query.decorator.ts +++ b/lib/decorators/inline-query.decorator.ts @@ -17,11 +17,3 @@ export const InlineQuery = ( ): MethodDecorator => { return SetMetadata(DECORATORS.INLINE_QUERY, { triggers }); }; - -/** - * Registers middleware for handling inline_query actions with regular expressions. - * - * @see https://telegraf.js.org/#/?id=inlinequery - * @deprecated since v2, use InlineQuery decorator instead. - */ -export const TelegrafInlineQuery = InlineQuery; diff --git a/lib/decorators/mention.decorator.ts b/lib/decorators/mention.decorator.ts index 7611c8e..004f41b 100644 --- a/lib/decorators/mention.decorator.ts +++ b/lib/decorators/mention.decorator.ts @@ -15,11 +15,3 @@ export interface MentionOptions { export const Mention = (username: TelegrafMentionUsername): MethodDecorator => { return SetMetadata(DECORATORS.MENTION, { username }); }; - -/** - * Mention handling. - * - * @see https://telegraf.js.org/#/?id=mention - * @deprecated since v2, use Mention decorator instead. - */ -export const TelegrafMention = Mention; diff --git a/lib/decorators/on.decorator.ts b/lib/decorators/on.decorator.ts index bc36c94..9e3752a 100644 --- a/lib/decorators/on.decorator.ts +++ b/lib/decorators/on.decorator.ts @@ -20,11 +20,3 @@ export interface OnOptions { export const On = (updateTypes: TelegrafOnUpdateTypes): MethodDecorator => { return SetMetadata(DECORATORS.ON, { updateTypes: updateTypes }); }; - -/** - * Registers middleware for provided update type. - * - * @see https://telegraf.js.org/#/?id=on - * @deprecated since v2, use On decorator instead. - */ -export const TelegrafOn = On; diff --git a/lib/decorators/phone.decorator.ts b/lib/decorators/phone.decorator.ts index 90e6342..39a0b27 100644 --- a/lib/decorators/phone.decorator.ts +++ b/lib/decorators/phone.decorator.ts @@ -15,11 +15,3 @@ export interface PhoneOptions { export const Phone = (phone: TelegrafPhonePhone): MethodDecorator => { return SetMetadata(DECORATORS.PHONE, { phone }); }; - -/** - * Phone number handling. - * - * @see https://telegraf.js.org/#/?id=phone - * @deprecated since v2, use Phone decorator instead. - */ -export const TelegrafPhone = Phone; diff --git a/lib/decorators/settings.decorator.ts b/lib/decorators/settings.decorator.ts index 674af29..9378e7f 100644 --- a/lib/decorators/settings.decorator.ts +++ b/lib/decorators/settings.decorator.ts @@ -9,11 +9,3 @@ import { DECORATORS } from '../telegraf.constants'; export const Settings = (): MethodDecorator => { return SetMetadata(DECORATORS.SETTINGS, {}); }; - -/** - * Handler for /settings command. - * - * @see https://telegraf.js.org/#/?id=settings - * @deprecated since v2, use Settings decorator instead. - */ -export const TelegrafSettings = Settings; diff --git a/lib/decorators/start.decorator.ts b/lib/decorators/start.decorator.ts index d11658e..9429753 100644 --- a/lib/decorators/start.decorator.ts +++ b/lib/decorators/start.decorator.ts @@ -9,11 +9,3 @@ import { DECORATORS } from '../telegraf.constants'; export const Start = (): MethodDecorator => { return SetMetadata(DECORATORS.START, {}); }; - -/** - * Handler for /start command. - * - * @see https://telegraf.js.org/#/?id=start - * @deprecated since v2, use Start decorator instead. - */ -export const TelegrafStart = Start; diff --git a/lib/decorators/use.decorator.ts b/lib/decorators/use.decorator.ts index 8c47461..a7f68fa 100644 --- a/lib/decorators/use.decorator.ts +++ b/lib/decorators/use.decorator.ts @@ -9,11 +9,3 @@ import { DECORATORS } from '../telegraf.constants'; export const Use = (): MethodDecorator => { return SetMetadata(DECORATORS.USE, {}); }; - -/** - * Registers a middleware. - * - * @see https://telegraf.js.org/#/?id=use - * @deprecated since v2, use Use decorator instead. - */ -export const TelegrafUse = Use;