nestjs-telegraf
Advanced tools
Comparing version 2.7.0 to 2.8.0
@@ -12,3 +12,3 @@ import { defineConfig } from 'vitepress' | ||
{ text: 'Docs', link: '/' }, | ||
{ text: 'API (typedoc)', link: 'https://nestjs-telegraf-api.vercel.app' } | ||
{ text: 'API (typedoc)', link: 'https://nestjs-telegraf-api.pages.dev/' } | ||
], | ||
@@ -44,5 +44,5 @@ | ||
socialLinks: [ | ||
{ icon: 'github', link: 'https://github.com/evilsprut/nestjs-telegraf' } | ||
{ icon: 'github', link: 'https://github.com/0x467/nestjs-telegraf' } | ||
] | ||
} | ||
}) |
@@ -6,2 +6,2 @@ /** | ||
*/ | ||
export declare const Action: (...args: [string] | [RegExp] | [(value: string, ctx: never) => RegExpExecArray] | [(string | RegExp | ((value: string, ctx: never) => RegExpExecArray))[]]) => MethodDecorator; | ||
export declare const Action: (...args: [string] | [RegExp] | [(value: string, ctx: import("telegraf").NarrowedContext<never, import("@telegraf/types").Update.CallbackQueryUpdate<import("@telegraf/types").CallbackQuery>>) => RegExpExecArray] | [(string | RegExp | ((value: string, ctx: import("telegraf").NarrowedContext<never, import("@telegraf/types").Update.CallbackQueryUpdate<import("@telegraf/types").CallbackQuery>>) => RegExpExecArray))[]]) => MethodDecorator; |
@@ -6,2 +6,8 @@ /** | ||
*/ | ||
export declare const Command: (...args: [string] | [RegExp] | [(value: string, ctx: never) => RegExpExecArray] | [(string | RegExp | ((value: string, ctx: never) => RegExpExecArray))[]]) => MethodDecorator; | ||
export declare const Command: (...args: [string] | [RegExp] | [(value: string, ctx: import("telegraf").NarrowedContext<never, { | ||
message: import("@telegraf/types").Update.New & import("@telegraf/types").Update.NonChannel & import("@telegraf/types").Message.TextMessage; | ||
update_id: number; | ||
}>) => RegExpExecArray] | [(string | RegExp | ((value: string, ctx: import("telegraf").NarrowedContext<never, { | ||
message: import("@telegraf/types").Update.New & import("@telegraf/types").Update.NonChannel & import("@telegraf/types").Message.TextMessage; | ||
update_id: number; | ||
}>) => RegExpExecArray))[]]) => MethodDecorator; |
@@ -6,2 +6,8 @@ /** | ||
*/ | ||
export declare const Hears: (...args: [string] | [RegExp] | [(value: string, ctx: never) => RegExpExecArray] | [(string | RegExp | ((value: string, ctx: never) => RegExpExecArray))[]]) => MethodDecorator; | ||
export declare const Hears: (...args: [string] | [RegExp] | [(value: string, ctx: import("telegraf").NarrowedContext<never, { | ||
message: import("@telegraf/types").Update.New & import("@telegraf/types").Update.NonChannel & import("@telegraf/types").Message.TextMessage; | ||
update_id: number; | ||
}>) => RegExpExecArray] | [(string | RegExp | ((value: string, ctx: import("telegraf").NarrowedContext<never, { | ||
message: import("@telegraf/types").Update.New & import("@telegraf/types").Update.NonChannel & import("@telegraf/types").Message.TextMessage; | ||
update_id: number; | ||
}>) => RegExpExecArray))[]]) => MethodDecorator; |
@@ -6,2 +6,2 @@ /** | ||
*/ | ||
export declare const InlineQuery: (...args: [string] | [RegExp] | [(value: string, ctx: never) => RegExpExecArray] | [(string | RegExp | ((value: string, ctx: never) => RegExpExecArray))[]]) => MethodDecorator; | ||
export declare const InlineQuery: (...args: [string] | [RegExp] | [(value: string, ctx: import("telegraf").NarrowedContext<never, import("@telegraf/types").Update.InlineQueryUpdate>) => RegExpExecArray] | [(string | RegExp | ((value: string, ctx: import("telegraf").NarrowedContext<never, import("@telegraf/types").Update.InlineQueryUpdate>) => RegExpExecArray))[]]) => MethodDecorator; |
@@ -6,2 +6,2 @@ /** | ||
*/ | ||
export declare const On: (...args: ["callback_query"] | ["channel_post"] | ["chat_member"] | ["chosen_inline_result"] | ["edited_channel_post"] | ["edited_message"] | ["inline_query"] | ["message"] | ["my_chat_member"] | ["pre_checkout_query"] | ["poll_answer"] | ["poll"] | ["shipping_query"] | ["chat_join_request"] | ["channel_chat_created"] | ["chat_shared"] | ["connected_website"] | ["delete_chat_photo"] | ["group_chat_created"] | ["invoice"] | ["left_chat_member"] | ["message_auto_delete_timer_changed"] | ["migrate_from_chat_id"] | ["migrate_to_chat_id"] | ["new_chat_members"] | ["new_chat_photo"] | ["new_chat_title"] | ["passport_data"] | ["proximity_alert_triggered"] | ["forum_topic_created"] | ["forum_topic_closed"] | ["forum_topic_reopened"] | ["pinned_message"] | ["successful_payment"] | ["supergroup_chat_created"] | ["user_shared"] | ["video_chat_scheduled"] | ["video_chat_started"] | ["video_chat_ended"] | ["video_chat_participants_invited"] | ["web_app_data"] | ["animation"] | ["document"] | ["has_media_spoiler"] | ["forward_date"] | ["audio"] | ["contact"] | ["dice"] | ["game"] | ["location"] | ["photo"] | ["sticker"] | ["text"] | ["venue"] | ["video"] | ["video_note"] | ["voice"] | [("callback_query" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "inline_query" | "message" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query" | "chat_join_request" | "channel_chat_created" | "chat_shared" | "connected_website" | "delete_chat_photo" | "group_chat_created" | "invoice" | "left_chat_member" | "message_auto_delete_timer_changed" | "migrate_from_chat_id" | "migrate_to_chat_id" | "new_chat_members" | "new_chat_photo" | "new_chat_title" | "passport_data" | "proximity_alert_triggered" | "forum_topic_created" | "forum_topic_closed" | "forum_topic_reopened" | "pinned_message" | "successful_payment" | "supergroup_chat_created" | "user_shared" | "video_chat_scheduled" | "video_chat_started" | "video_chat_ended" | "video_chat_participants_invited" | "web_app_data" | "animation" | "document" | "has_media_spoiler" | "forward_date" | "audio" | "contact" | "dice" | "game" | "location" | "photo" | "sticker" | "text" | "venue" | "video" | "video_note" | "voice")[]]) => MethodDecorator; | ||
export declare const On: (...args: ["callback_query"] | ["channel_post"] | ["chat_member"] | ["chosen_inline_result"] | ["edited_channel_post"] | ["message_reaction"] | ["message_reaction_count"] | ["edited_message"] | ["inline_query"] | ["message"] | ["my_chat_member"] | ["pre_checkout_query"] | ["poll_answer"] | ["poll"] | ["shipping_query"] | ["chat_join_request"] | ["chat_boost"] | ["removed_chat_boost"] | ["text"] | ["forward_date"] | ["new_chat_members"] | ["left_chat_member"] | ["new_chat_title"] | ["new_chat_photo"] | ["delete_chat_photo"] | ["group_chat_created"] | ["supergroup_chat_created"] | ["channel_chat_created"] | ["message_auto_delete_timer_changed"] | ["migrate_to_chat_id"] | ["migrate_from_chat_id"] | ["pinned_message"] | ["invoice"] | ["successful_payment"] | ["users_shared"] | ["chat_shared"] | ["connected_website"] | ["write_access_allowed"] | ["passport_data"] | ["proximity_alert_triggered"] | ["boost_added"] | ["forum_topic_created"] | ["forum_topic_edited"] | ["forum_topic_closed"] | ["forum_topic_reopened"] | ["general_forum_topic_hidden"] | ["general_forum_topic_unhidden"] | ["giveaway_created"] | ["giveaway"] | ["giveaway_winners"] | ["giveaway_completed"] | ["video_chat_scheduled"] | ["video_chat_started"] | ["video_chat_ended"] | ["video_chat_participants_invited"] | ["web_app_data"] | ["animation"] | ["document"] | ["has_media_spoiler"] | ["audio"] | ["contact"] | ["dice"] | ["game"] | ["location"] | ["photo"] | ["sticker"] | ["story"] | ["venue"] | ["video"] | ["video_note"] | ["voice"] | [("callback_query" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "message_reaction" | "message_reaction_count" | "edited_message" | "inline_query" | "message" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query" | "chat_join_request" | "chat_boost" | "removed_chat_boost" | "text" | "forward_date" | "new_chat_members" | "left_chat_member" | "new_chat_title" | "new_chat_photo" | "delete_chat_photo" | "group_chat_created" | "supergroup_chat_created" | "channel_chat_created" | "message_auto_delete_timer_changed" | "migrate_to_chat_id" | "migrate_from_chat_id" | "pinned_message" | "invoice" | "successful_payment" | "users_shared" | "chat_shared" | "connected_website" | "write_access_allowed" | "passport_data" | "proximity_alert_triggered" | "boost_added" | "forum_topic_created" | "forum_topic_edited" | "forum_topic_closed" | "forum_topic_reopened" | "general_forum_topic_hidden" | "general_forum_topic_unhidden" | "giveaway_created" | "giveaway" | "giveaway_winners" | "giveaway_completed" | "video_chat_scheduled" | "video_chat_started" | "video_chat_ended" | "video_chat_participants_invited" | "web_app_data" | "animation" | "document" | "has_media_spoiler" | "audio" | "contact" | "dice" | "game" | "location" | "photo" | "sticker" | "story" | "venue" | "video" | "video_note" | "voice")[]]) => MethodDecorator; |
@@ -1,1 +0,11 @@ | ||
export declare const SceneEnter: (...args: [] | ["callback_query"] | ["channel_post"] | ["chat_member"] | ["chosen_inline_result"] | ["edited_channel_post"] | ["edited_message"] | ["inline_query"] | ["message"] | ["my_chat_member"] | ["pre_checkout_query"] | ["poll_answer"] | ["poll"] | ["shipping_query"] | ["chat_join_request"] | ["channel_chat_created"] | ["chat_shared"] | ["connected_website"] | ["delete_chat_photo"] | ["group_chat_created"] | ["invoice"] | ["left_chat_member"] | ["message_auto_delete_timer_changed"] | ["migrate_from_chat_id"] | ["migrate_to_chat_id"] | ["new_chat_members"] | ["new_chat_photo"] | ["new_chat_title"] | ["passport_data"] | ["proximity_alert_triggered"] | ["forum_topic_created"] | ["forum_topic_closed"] | ["forum_topic_reopened"] | ["pinned_message"] | ["successful_payment"] | ["supergroup_chat_created"] | ["user_shared"] | ["video_chat_scheduled"] | ["video_chat_started"] | ["video_chat_ended"] | ["video_chat_participants_invited"] | ["web_app_data"] | ["animation"] | ["document"] | ["has_media_spoiler"] | ["forward_date"] | ["audio"] | ["contact"] | ["dice"] | ["game"] | ["location"] | ["photo"] | ["sticker"] | ["text"] | ["venue"] | ["video"] | ["video_note"] | ["voice"] | [("callback_query" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "inline_query" | "message" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query" | "chat_join_request" | "channel_chat_created" | "chat_shared" | "connected_website" | "delete_chat_photo" | "group_chat_created" | "invoice" | "left_chat_member" | "message_auto_delete_timer_changed" | "migrate_from_chat_id" | "migrate_to_chat_id" | "new_chat_members" | "new_chat_photo" | "new_chat_title" | "passport_data" | "proximity_alert_triggered" | "forum_topic_created" | "forum_topic_closed" | "forum_topic_reopened" | "pinned_message" | "successful_payment" | "supergroup_chat_created" | "user_shared" | "video_chat_scheduled" | "video_chat_started" | "video_chat_ended" | "video_chat_participants_invited" | "web_app_data" | "animation" | "document" | "has_media_spoiler" | "forward_date" | "audio" | "contact" | "dice" | "game" | "location" | "photo" | "sticker" | "text" | "venue" | "video" | "video_note" | "voice")[]] | [string] | [RegExp] | [(value: string, ctx: never) => RegExpExecArray] | [(string | RegExp | ((value: string, ctx: never) => RegExpExecArray))[]] | [string[]] | [(update: import("typegram").Update) => update is import("typegram").Update] | [import("telegraf/typings/composer").Predicate<never>]) => MethodDecorator; | ||
export declare const SceneEnter: (...args: [] | ["callback_query"] | ["channel_post"] | ["chat_member"] | ["chosen_inline_result"] | ["edited_channel_post"] | ["message_reaction"] | ["message_reaction_count"] | ["edited_message"] | ["inline_query"] | ["message"] | ["my_chat_member"] | ["pre_checkout_query"] | ["poll_answer"] | ["poll"] | ["shipping_query"] | ["chat_join_request"] | ["chat_boost"] | ["removed_chat_boost"] | ["text"] | ["forward_date"] | ["new_chat_members"] | ["left_chat_member"] | ["new_chat_title"] | ["new_chat_photo"] | ["delete_chat_photo"] | ["group_chat_created"] | ["supergroup_chat_created"] | ["channel_chat_created"] | ["message_auto_delete_timer_changed"] | ["migrate_to_chat_id"] | ["migrate_from_chat_id"] | ["pinned_message"] | ["invoice"] | ["successful_payment"] | ["users_shared"] | ["chat_shared"] | ["connected_website"] | ["write_access_allowed"] | ["passport_data"] | ["proximity_alert_triggered"] | ["boost_added"] | ["forum_topic_created"] | ["forum_topic_edited"] | ["forum_topic_closed"] | ["forum_topic_reopened"] | ["general_forum_topic_hidden"] | ["general_forum_topic_unhidden"] | ["giveaway_created"] | ["giveaway"] | ["giveaway_winners"] | ["giveaway_completed"] | ["video_chat_scheduled"] | ["video_chat_started"] | ["video_chat_ended"] | ["video_chat_participants_invited"] | ["web_app_data"] | ["animation"] | ["document"] | ["has_media_spoiler"] | ["audio"] | ["contact"] | ["dice"] | ["game"] | ["location"] | ["photo"] | ["sticker"] | ["story"] | ["venue"] | ["video"] | ["video_note"] | ["voice"] | [("callback_query" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "message_reaction" | "message_reaction_count" | "edited_message" | "inline_query" | "message" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query" | "chat_join_request" | "chat_boost" | "removed_chat_boost" | "text" | "forward_date" | "new_chat_members" | "left_chat_member" | "new_chat_title" | "new_chat_photo" | "delete_chat_photo" | "group_chat_created" | "supergroup_chat_created" | "channel_chat_created" | "message_auto_delete_timer_changed" | "migrate_to_chat_id" | "migrate_from_chat_id" | "pinned_message" | "invoice" | "successful_payment" | "users_shared" | "chat_shared" | "connected_website" | "write_access_allowed" | "passport_data" | "proximity_alert_triggered" | "boost_added" | "forum_topic_created" | "forum_topic_edited" | "forum_topic_closed" | "forum_topic_reopened" | "general_forum_topic_hidden" | "general_forum_topic_unhidden" | "giveaway_created" | "giveaway" | "giveaway_winners" | "giveaway_completed" | "video_chat_scheduled" | "video_chat_started" | "video_chat_ended" | "video_chat_participants_invited" | "web_app_data" | "animation" | "document" | "has_media_spoiler" | "audio" | "contact" | "dice" | "game" | "location" | "photo" | "sticker" | "story" | "venue" | "video" | "video_note" | "voice")[]] | [string] | [RegExp] | [(value: string, ctx: import("telegraf").NarrowedContext<never, import("@telegraf/types").Update.CallbackQueryUpdate<import("@telegraf/types").CallbackQuery>>) => RegExpExecArray] | [(string | RegExp | ((value: string, ctx: import("telegraf").NarrowedContext<never, import("@telegraf/types").Update.CallbackQueryUpdate<import("@telegraf/types").CallbackQuery>>) => RegExpExecArray))[]] | [string[]] | [(value: string, ctx: import("telegraf").NarrowedContext<never, { | ||
message: import("@telegraf/types").Update.New & import("@telegraf/types").Update.NonChannel & import("@telegraf/types").Message.TextMessage; | ||
update_id: number; | ||
}>) => RegExpExecArray] | [(string | RegExp | ((value: string, ctx: import("telegraf").NarrowedContext<never, { | ||
message: import("@telegraf/types").Update.New & import("@telegraf/types").Update.NonChannel & import("@telegraf/types").Message.TextMessage; | ||
update_id: number; | ||
}>) => RegExpExecArray))[]] | [(value: string, ctx: import("telegraf").NarrowedContext<never, import("@telegraf/types").Update.InlineQueryUpdate>) => RegExpExecArray] | [(string | RegExp | ((value: string, ctx: import("telegraf").NarrowedContext<never, import("@telegraf/types").Update.InlineQueryUpdate>) => RegExpExecArray))[]] | [(value: string, ctx: never) => RegExpExecArray] | [(string | RegExp | ((value: string, ctx: never) => RegExpExecArray))[]] | [(update: import("@telegraf/types").Update) => update is import("@telegraf/types").Update] | ["๐"] | ["๐"] | ["โค"] | ["๐ฅ"] | ["๐ฅฐ"] | ["๐"] | ["๐"] | ["๐ค"] | ["๐คฏ"] | ["๐ฑ"] | ["๐คฌ"] | ["๐ข"] | ["๐"] | ["๐คฉ"] | ["๐คฎ"] | ["๐ฉ"] | ["๐"] | ["๐"] | ["๐"] | ["๐คก"] | ["๐ฅฑ"] | ["๐ฅด"] | ["๐"] | ["๐ณ"] | ["โคโ๐ฅ"] | ["๐"] | ["๐ญ"] | ["๐ฏ"] | ["๐คฃ"] | ["โก"] | ["๐"] | ["๐"] | ["๐"] | ["๐คจ"] | ["๐"] | ["๐"] | ["๐พ"] | ["๐"] | ["๐"] | ["๐"] | ["๐ด"] | ["๐ญ"] | ["๐ค"] | ["๐ป"] | ["๐จโ๐ป"] | ["๐"] | ["๐"] | ["๐"] | ["๐"] | ["๐จ"] | ["๐ค"] | ["โ"] | ["๐ค"] | ["๐ซก"] | ["๐ "] | ["๐"] | ["โ"] | ["๐ "] | ["๐คช"] | ["๐ฟ"] | ["๐"] | ["๐"] | ["๐"] | ["๐ฆ"] | ["๐"] | ["๐"] | ["๐"] | ["๐"] | ["๐พ"] | ["๐คทโโ"] | ["๐คท"] | ["๐คทโโ"] | ["๐ก"] | [`0${string}`] | [`1${string}`] | [`2${string}`] | [`3${string}`] | [`4${string}`] | [`5${string}`] | [`6${string}`] | [`7${string}`] | [`8${string}`] | [`9${string}`] | [import("@telegraf/types").ReactionTypeEmoji & { | ||
readonly custom_emoji_id?: never; | ||
}] | [import("@telegraf/types").ReactionTypeCustomEmoji & { | ||
readonly emoji?: never; | ||
}] | ["-๐"] | ["-๐"] | ["-โค"] | ["-๐ฅ"] | ["-๐ฅฐ"] | ["-๐"] | ["-๐"] | ["-๐ค"] | ["-๐คฏ"] | ["-๐ฑ"] | ["-๐คฌ"] | ["-๐ข"] | ["-๐"] | ["-๐คฉ"] | ["-๐คฎ"] | ["-๐ฉ"] | ["-๐"] | ["-๐"] | ["-๐"] | ["-๐คก"] | ["-๐ฅฑ"] | ["-๐ฅด"] | ["-๐"] | ["-๐ณ"] | ["-โคโ๐ฅ"] | ["-๐"] | ["-๐ญ"] | ["-๐ฏ"] | ["-๐คฃ"] | ["-โก"] | ["-๐"] | ["-๐"] | ["-๐"] | ["-๐คจ"] | ["-๐"] | ["-๐"] | ["-๐พ"] | ["-๐"] | ["-๐"] | ["-๐"] | ["-๐ด"] | ["-๐ญ"] | ["-๐ค"] | ["-๐ป"] | ["-๐จโ๐ป"] | ["-๐"] | ["-๐"] | ["-๐"] | ["-๐"] | ["-๐จ"] | ["-๐ค"] | ["-โ"] | ["-๐ค"] | ["-๐ซก"] | ["-๐ "] | ["-๐"] | ["-โ"] | ["-๐ "] | ["-๐คช"] | ["-๐ฟ"] | ["-๐"] | ["-๐"] | ["-๐"] | ["-๐ฆ"] | ["-๐"] | ["-๐"] | ["-๐"] | ["-๐"] | ["-๐พ"] | ["-๐คทโโ"] | ["-๐คท"] | ["-๐คทโโ"] | ["-๐ก"] | [`-0${string}`] | [`-1${string}`] | [`-2${string}`] | [`-3${string}`] | [`-4${string}`] | [`-5${string}`] | [`-6${string}`] | [`-7${string}`] | [`-8${string}`] | [`-9${string}`] | [(import("telegraf/typings/reactions").Reaction | "-๐" | "-๐" | "-โค" | "-๐ฅ" | "-๐ฅฐ" | "-๐" | "-๐" | "-๐ค" | "-๐คฏ" | "-๐ฑ" | "-๐คฌ" | "-๐ข" | "-๐" | "-๐คฉ" | "-๐คฎ" | "-๐ฉ" | "-๐" | "-๐" | "-๐" | "-๐คก" | "-๐ฅฑ" | "-๐ฅด" | "-๐" | "-๐ณ" | "-โคโ๐ฅ" | "-๐" | "-๐ญ" | "-๐ฏ" | "-๐คฃ" | "-โก" | "-๐" | "-๐" | "-๐" | "-๐คจ" | "-๐" | "-๐" | "-๐พ" | "-๐" | "-๐" | "-๐" | "-๐ด" | "-๐ญ" | "-๐ค" | "-๐ป" | "-๐จโ๐ป" | "-๐" | "-๐" | "-๐" | "-๐" | "-๐จ" | "-๐ค" | "-โ" | "-๐ค" | "-๐ซก" | "-๐ " | "-๐" | "-โ" | "-๐ " | "-๐คช" | "-๐ฟ" | "-๐" | "-๐" | "-๐" | "-๐ฆ" | "-๐" | "-๐" | "-๐" | "-๐" | "-๐พ" | "-๐คทโโ" | "-๐คท" | "-๐คทโโ" | "-๐ก" | `-0${string}` | `-1${string}` | `-2${string}` | `-3${string}` | `-4${string}` | `-5${string}` | `-6${string}` | `-7${string}` | `-8${string}` | `-9${string}`)[]] | [import("telegraf/typings/composer").Predicate<never>]) => MethodDecorator; |
@@ -1,1 +0,11 @@ | ||
export declare const SceneLeave: (...args: [] | ["callback_query"] | ["channel_post"] | ["chat_member"] | ["chosen_inline_result"] | ["edited_channel_post"] | ["edited_message"] | ["inline_query"] | ["message"] | ["my_chat_member"] | ["pre_checkout_query"] | ["poll_answer"] | ["poll"] | ["shipping_query"] | ["chat_join_request"] | ["channel_chat_created"] | ["chat_shared"] | ["connected_website"] | ["delete_chat_photo"] | ["group_chat_created"] | ["invoice"] | ["left_chat_member"] | ["message_auto_delete_timer_changed"] | ["migrate_from_chat_id"] | ["migrate_to_chat_id"] | ["new_chat_members"] | ["new_chat_photo"] | ["new_chat_title"] | ["passport_data"] | ["proximity_alert_triggered"] | ["forum_topic_created"] | ["forum_topic_closed"] | ["forum_topic_reopened"] | ["pinned_message"] | ["successful_payment"] | ["supergroup_chat_created"] | ["user_shared"] | ["video_chat_scheduled"] | ["video_chat_started"] | ["video_chat_ended"] | ["video_chat_participants_invited"] | ["web_app_data"] | ["animation"] | ["document"] | ["has_media_spoiler"] | ["forward_date"] | ["audio"] | ["contact"] | ["dice"] | ["game"] | ["location"] | ["photo"] | ["sticker"] | ["text"] | ["venue"] | ["video"] | ["video_note"] | ["voice"] | [("callback_query" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "edited_message" | "inline_query" | "message" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query" | "chat_join_request" | "channel_chat_created" | "chat_shared" | "connected_website" | "delete_chat_photo" | "group_chat_created" | "invoice" | "left_chat_member" | "message_auto_delete_timer_changed" | "migrate_from_chat_id" | "migrate_to_chat_id" | "new_chat_members" | "new_chat_photo" | "new_chat_title" | "passport_data" | "proximity_alert_triggered" | "forum_topic_created" | "forum_topic_closed" | "forum_topic_reopened" | "pinned_message" | "successful_payment" | "supergroup_chat_created" | "user_shared" | "video_chat_scheduled" | "video_chat_started" | "video_chat_ended" | "video_chat_participants_invited" | "web_app_data" | "animation" | "document" | "has_media_spoiler" | "forward_date" | "audio" | "contact" | "dice" | "game" | "location" | "photo" | "sticker" | "text" | "venue" | "video" | "video_note" | "voice")[]] | [string] | [RegExp] | [(value: string, ctx: never) => RegExpExecArray] | [(string | RegExp | ((value: string, ctx: never) => RegExpExecArray))[]] | [string[]] | [(update: import("typegram").Update) => update is import("typegram").Update] | [import("telegraf/typings/composer").Predicate<never>]) => MethodDecorator; | ||
export declare const SceneLeave: (...args: [] | ["callback_query"] | ["channel_post"] | ["chat_member"] | ["chosen_inline_result"] | ["edited_channel_post"] | ["message_reaction"] | ["message_reaction_count"] | ["edited_message"] | ["inline_query"] | ["message"] | ["my_chat_member"] | ["pre_checkout_query"] | ["poll_answer"] | ["poll"] | ["shipping_query"] | ["chat_join_request"] | ["chat_boost"] | ["removed_chat_boost"] | ["text"] | ["forward_date"] | ["new_chat_members"] | ["left_chat_member"] | ["new_chat_title"] | ["new_chat_photo"] | ["delete_chat_photo"] | ["group_chat_created"] | ["supergroup_chat_created"] | ["channel_chat_created"] | ["message_auto_delete_timer_changed"] | ["migrate_to_chat_id"] | ["migrate_from_chat_id"] | ["pinned_message"] | ["invoice"] | ["successful_payment"] | ["users_shared"] | ["chat_shared"] | ["connected_website"] | ["write_access_allowed"] | ["passport_data"] | ["proximity_alert_triggered"] | ["boost_added"] | ["forum_topic_created"] | ["forum_topic_edited"] | ["forum_topic_closed"] | ["forum_topic_reopened"] | ["general_forum_topic_hidden"] | ["general_forum_topic_unhidden"] | ["giveaway_created"] | ["giveaway"] | ["giveaway_winners"] | ["giveaway_completed"] | ["video_chat_scheduled"] | ["video_chat_started"] | ["video_chat_ended"] | ["video_chat_participants_invited"] | ["web_app_data"] | ["animation"] | ["document"] | ["has_media_spoiler"] | ["audio"] | ["contact"] | ["dice"] | ["game"] | ["location"] | ["photo"] | ["sticker"] | ["story"] | ["venue"] | ["video"] | ["video_note"] | ["voice"] | [("callback_query" | "channel_post" | "chat_member" | "chosen_inline_result" | "edited_channel_post" | "message_reaction" | "message_reaction_count" | "edited_message" | "inline_query" | "message" | "my_chat_member" | "pre_checkout_query" | "poll_answer" | "poll" | "shipping_query" | "chat_join_request" | "chat_boost" | "removed_chat_boost" | "text" | "forward_date" | "new_chat_members" | "left_chat_member" | "new_chat_title" | "new_chat_photo" | "delete_chat_photo" | "group_chat_created" | "supergroup_chat_created" | "channel_chat_created" | "message_auto_delete_timer_changed" | "migrate_to_chat_id" | "migrate_from_chat_id" | "pinned_message" | "invoice" | "successful_payment" | "users_shared" | "chat_shared" | "connected_website" | "write_access_allowed" | "passport_data" | "proximity_alert_triggered" | "boost_added" | "forum_topic_created" | "forum_topic_edited" | "forum_topic_closed" | "forum_topic_reopened" | "general_forum_topic_hidden" | "general_forum_topic_unhidden" | "giveaway_created" | "giveaway" | "giveaway_winners" | "giveaway_completed" | "video_chat_scheduled" | "video_chat_started" | "video_chat_ended" | "video_chat_participants_invited" | "web_app_data" | "animation" | "document" | "has_media_spoiler" | "audio" | "contact" | "dice" | "game" | "location" | "photo" | "sticker" | "story" | "venue" | "video" | "video_note" | "voice")[]] | [string] | [RegExp] | [(value: string, ctx: import("telegraf").NarrowedContext<never, import("@telegraf/types").Update.CallbackQueryUpdate<import("@telegraf/types").CallbackQuery>>) => RegExpExecArray] | [(string | RegExp | ((value: string, ctx: import("telegraf").NarrowedContext<never, import("@telegraf/types").Update.CallbackQueryUpdate<import("@telegraf/types").CallbackQuery>>) => RegExpExecArray))[]] | [string[]] | [(value: string, ctx: import("telegraf").NarrowedContext<never, { | ||
message: import("@telegraf/types").Update.New & import("@telegraf/types").Update.NonChannel & import("@telegraf/types").Message.TextMessage; | ||
update_id: number; | ||
}>) => RegExpExecArray] | [(string | RegExp | ((value: string, ctx: import("telegraf").NarrowedContext<never, { | ||
message: import("@telegraf/types").Update.New & import("@telegraf/types").Update.NonChannel & import("@telegraf/types").Message.TextMessage; | ||
update_id: number; | ||
}>) => RegExpExecArray))[]] | [(value: string, ctx: import("telegraf").NarrowedContext<never, import("@telegraf/types").Update.InlineQueryUpdate>) => RegExpExecArray] | [(string | RegExp | ((value: string, ctx: import("telegraf").NarrowedContext<never, import("@telegraf/types").Update.InlineQueryUpdate>) => RegExpExecArray))[]] | [(value: string, ctx: never) => RegExpExecArray] | [(string | RegExp | ((value: string, ctx: never) => RegExpExecArray))[]] | [(update: import("@telegraf/types").Update) => update is import("@telegraf/types").Update] | ["๐"] | ["๐"] | ["โค"] | ["๐ฅ"] | ["๐ฅฐ"] | ["๐"] | ["๐"] | ["๐ค"] | ["๐คฏ"] | ["๐ฑ"] | ["๐คฌ"] | ["๐ข"] | ["๐"] | ["๐คฉ"] | ["๐คฎ"] | ["๐ฉ"] | ["๐"] | ["๐"] | ["๐"] | ["๐คก"] | ["๐ฅฑ"] | ["๐ฅด"] | ["๐"] | ["๐ณ"] | ["โคโ๐ฅ"] | ["๐"] | ["๐ญ"] | ["๐ฏ"] | ["๐คฃ"] | ["โก"] | ["๐"] | ["๐"] | ["๐"] | ["๐คจ"] | ["๐"] | ["๐"] | ["๐พ"] | ["๐"] | ["๐"] | ["๐"] | ["๐ด"] | ["๐ญ"] | ["๐ค"] | ["๐ป"] | ["๐จโ๐ป"] | ["๐"] | ["๐"] | ["๐"] | ["๐"] | ["๐จ"] | ["๐ค"] | ["โ"] | ["๐ค"] | ["๐ซก"] | ["๐ "] | ["๐"] | ["โ"] | ["๐ "] | ["๐คช"] | ["๐ฟ"] | ["๐"] | ["๐"] | ["๐"] | ["๐ฆ"] | ["๐"] | ["๐"] | ["๐"] | ["๐"] | ["๐พ"] | ["๐คทโโ"] | ["๐คท"] | ["๐คทโโ"] | ["๐ก"] | [`0${string}`] | [`1${string}`] | [`2${string}`] | [`3${string}`] | [`4${string}`] | [`5${string}`] | [`6${string}`] | [`7${string}`] | [`8${string}`] | [`9${string}`] | [import("@telegraf/types").ReactionTypeEmoji & { | ||
readonly custom_emoji_id?: never; | ||
}] | [import("@telegraf/types").ReactionTypeCustomEmoji & { | ||
readonly emoji?: never; | ||
}] | ["-๐"] | ["-๐"] | ["-โค"] | ["-๐ฅ"] | ["-๐ฅฐ"] | ["-๐"] | ["-๐"] | ["-๐ค"] | ["-๐คฏ"] | ["-๐ฑ"] | ["-๐คฌ"] | ["-๐ข"] | ["-๐"] | ["-๐คฉ"] | ["-๐คฎ"] | ["-๐ฉ"] | ["-๐"] | ["-๐"] | ["-๐"] | ["-๐คก"] | ["-๐ฅฑ"] | ["-๐ฅด"] | ["-๐"] | ["-๐ณ"] | ["-โคโ๐ฅ"] | ["-๐"] | ["-๐ญ"] | ["-๐ฏ"] | ["-๐คฃ"] | ["-โก"] | ["-๐"] | ["-๐"] | ["-๐"] | ["-๐คจ"] | ["-๐"] | ["-๐"] | ["-๐พ"] | ["-๐"] | ["-๐"] | ["-๐"] | ["-๐ด"] | ["-๐ญ"] | ["-๐ค"] | ["-๐ป"] | ["-๐จโ๐ป"] | ["-๐"] | ["-๐"] | ["-๐"] | ["-๐"] | ["-๐จ"] | ["-๐ค"] | ["-โ"] | ["-๐ค"] | ["-๐ซก"] | ["-๐ "] | ["-๐"] | ["-โ"] | ["-๐ "] | ["-๐คช"] | ["-๐ฟ"] | ["-๐"] | ["-๐"] | ["-๐"] | ["-๐ฆ"] | ["-๐"] | ["-๐"] | ["-๐"] | ["-๐"] | ["-๐พ"] | ["-๐คทโโ"] | ["-๐คท"] | ["-๐คทโโ"] | ["-๐ก"] | [`-0${string}`] | [`-1${string}`] | [`-2${string}`] | [`-3${string}`] | [`-4${string}`] | [`-5${string}`] | [`-6${string}`] | [`-7${string}`] | [`-8${string}`] | [`-9${string}`] | [(import("telegraf/typings/reactions").Reaction | "-๐" | "-๐" | "-โค" | "-๐ฅ" | "-๐ฅฐ" | "-๐" | "-๐" | "-๐ค" | "-๐คฏ" | "-๐ฑ" | "-๐คฌ" | "-๐ข" | "-๐" | "-๐คฉ" | "-๐คฎ" | "-๐ฉ" | "-๐" | "-๐" | "-๐" | "-๐คก" | "-๐ฅฑ" | "-๐ฅด" | "-๐" | "-๐ณ" | "-โคโ๐ฅ" | "-๐" | "-๐ญ" | "-๐ฏ" | "-๐คฃ" | "-โก" | "-๐" | "-๐" | "-๐" | "-๐คจ" | "-๐" | "-๐" | "-๐พ" | "-๐" | "-๐" | "-๐" | "-๐ด" | "-๐ญ" | "-๐ค" | "-๐ป" | "-๐จโ๐ป" | "-๐" | "-๐" | "-๐" | "-๐" | "-๐จ" | "-๐ค" | "-โ" | "-๐ค" | "-๐ซก" | "-๐ " | "-๐" | "-โ" | "-๐ " | "-๐คช" | "-๐ฟ" | "-๐" | "-๐" | "-๐" | "-๐ฆ" | "-๐" | "-๐" | "-๐" | "-๐" | "-๐พ" | "-๐คทโโ" | "-๐คท" | "-๐คทโโ" | "-๐ก" | `-0${string}` | `-1${string}` | `-2${string}` | `-3${string}` | `-4${string}` | `-5${string}` | `-6${string}` | `-7${string}` | `-8${string}` | `-9${string}`)[]] | [import("telegraf/typings/composer").Predicate<never>]) => MethodDecorator; |
@@ -7,3 +7,3 @@ "use strict"; | ||
return (...args) => { | ||
return (_target, _key, descriptor) => { | ||
return (target, _key, descriptor) => { | ||
const metadata = [ | ||
@@ -15,6 +15,10 @@ { | ||
]; | ||
const previousValue = Reflect.getMetadata(telegraf_constants_1.LISTENERS_METADATA, descriptor.value) || []; | ||
const value = [...previousValue, ...metadata]; | ||
Reflect.defineMetadata(telegraf_constants_1.LISTENERS_METADATA, value, descriptor.value); | ||
return descriptor; | ||
if (descriptor) { | ||
const previousValue = Reflect.getMetadata(telegraf_constants_1.LISTENERS_METADATA, descriptor.value) || []; | ||
const value = [...previousValue, ...metadata]; | ||
Reflect.defineMetadata(telegraf_constants_1.LISTENERS_METADATA, value, descriptor.value); | ||
return descriptor; | ||
} | ||
Reflect.defineMetadata(telegraf_constants_1.LISTENERS_METADATA, metadata, target); | ||
return target; | ||
}; | ||
@@ -21,0 +25,0 @@ }; |
@@ -23,3 +23,3 @@ # Getting updates | ||
The last step is to specify launchOptions in `forRoot` method: | ||
The last step is to specify `launchOptions` in `forRoot` method: | ||
```typescript | ||
@@ -33,3 +33,3 @@ TelegrafModule.forRootAsync({ | ||
domain: 'domain.tld', | ||
hookPath: '/secret-path', | ||
path: '/secret-path', | ||
} | ||
@@ -41,1 +41,2 @@ } | ||
``` | ||
If you don't want to receive updates, you need to set `launchOptions` to `false`. |
MIT License | ||
Copyright (c) 2019 - present Aleksandr Bukhalo (evilsprut@icloud.com) | ||
Copyright (c) 2019 - present 0x467 (0x467@pm.me) | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
{ | ||
"name": "nestjs-telegraf", | ||
"version": "2.7.0", | ||
"version": "2.8.0", | ||
"description": "Telegraf module for NestJS", | ||
@@ -17,10 +17,9 @@ "keywords": [ | ||
], | ||
"homepage": "https://nestjs-telegraf.vercel.app", | ||
"homepage": "https://nestjs-telegraf.0x467.com/", | ||
"bugs": { | ||
"url": "https://github.com/evilsprut/nestjs-telegraf/issues" | ||
"url": "https://github.com/0x467/nestjs-telegraf/issues" | ||
}, | ||
"repository": "git@github.com:evilsprut/nestjs-telegraf.git", | ||
"funding": "https://hypeer.company/donate", | ||
"repository": "git@github.com:0x467/nestjs-telegraf.git", | ||
"license": "MIT", | ||
"author": "Aleksandr Bukhalo <evilsprut@icloud.com>", | ||
"author": "0x467 <0x467@pm.me>", | ||
"contributors": [ | ||
@@ -61,11 +60,11 @@ { | ||
"@commitlint/cli": "17.4.4", | ||
"@commitlint/config-angular": "17.1.0", | ||
"@commitlint/config-angular": "17.6.7", | ||
"@nestjs/common": "^9.0.11", | ||
"@nestjs/core": "^9.0.11", | ||
"@types/lodash": "4.14.191", | ||
"@types/lodash": "4.14.195", | ||
"@typescript-eslint/eslint-plugin": "5.54.0", | ||
"@typescript-eslint/parser": "5.45.0", | ||
"@typescript-eslint/parser": "5.62.0", | ||
"eslint": "8.45.0", | ||
"eslint-config-prettier": "8.8.0", | ||
"eslint-plugin-prettier": "4.2.1", | ||
"eslint-plugin-prettier": "5.0.0", | ||
"husky": "8.0.1", | ||
@@ -75,3 +74,3 @@ "lint-staged": "13.2.3", | ||
"reflect-metadata": "0.1.13", | ||
"telegraf": "4.12.2", | ||
"telegraf": "^4.16.0", | ||
"typedoc": "0.24.8", | ||
@@ -78,0 +77,0 @@ "typescript": "4.8.2", |
@@ -1,2 +0,2 @@ | ||
# 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/nestjs-telegraf) ![GitHub last commit](https://img.shields.io/github/last-commit/0x467/nestjs-telegraf) ![NPM](https://img.shields.io/npm/l/nestjs-telegraf) | ||
@@ -3,0 +3,0 @@ <img align="right" width="95" height="148" title="NestJS logotype" |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
106030
1687
1