@grammyjs/conversations
Advanced tools
Comparing version 1.1.2 to 1.2.0
@@ -1,6 +0,6 @@ | ||
import { type ApiResponse, type CallbackQueryContext, type CommandContext, Context, type Filter, type FilterQuery, type GameQueryContext, type HearsContext, type LazySessionFlavor, type Middleware, type MiddlewareFn, type RawApi, type SessionFlavor, type Update, type User } from "./deps.node.js"; | ||
import { type ApiResponse, type CallbackQueryContext, type CommandContext, Context, type Filter, type FilterQuery, type GameQueryContext, type HearsContext, type LazySessionFlavor, type Middleware, type MiddlewareFn, type RawApi, type ReactionContext, type ReactionType, type ReactionTypeEmoji, type SessionFlavor, type Update, type User } from "./deps.node.js"; | ||
import { ConversationForm } from "./form.js"; | ||
import { type Resolver } from "./utils.js"; | ||
type MaybeArray<T> = T | T[]; | ||
type StringWithSuggestions<S extends string> = (string & {}) | S; | ||
type StringWithSuggestions<S extends string> = (string & Record<never, never>) | S; | ||
/** | ||
@@ -430,2 +430,10 @@ * A user-defined conversation builder function that can be turned into | ||
/** | ||
* Waits for the specified reaction. This uses the same logic as | ||
* `bot.reaction`. | ||
* | ||
* @param reaction The reaction to wait for | ||
* @param opts Optional config for discarded updates | ||
*/ | ||
waitForReaction(reaction: MaybeArray<ReactionTypeEmoji["emoji"] | ReactionType>, opts?: OtherwiseConfig<C>): Promise<ReactionContext<C>>; | ||
/** | ||
* Waits for an update which contains the given callback query, or for the | ||
@@ -432,0 +440,0 @@ * callback query data to match the given regular expression. This uses the |
@@ -669,2 +669,12 @@ "use strict"; | ||
/** | ||
* Waits for the specified reaction. This uses the same logic as | ||
* `bot.reaction`. | ||
* | ||
* @param reaction The reaction to wait for | ||
* @param opts Optional config for discarded updates | ||
*/ | ||
async waitForReaction(reaction, opts) { | ||
return await this.waitUntil(deps_node_js_1.Context.has.reaction(reaction), opts); | ||
} | ||
/** | ||
* Waits for an update which contains the given callback query, or for the | ||
@@ -671,0 +681,0 @@ * callback query data to match the given regular expression. This uses the |
{ | ||
"name": "@grammyjs/conversations", | ||
"description": "Conversational interfaces for grammY", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"author": "KnorpelSenf", | ||
@@ -20,3 +20,2 @@ "license": "MIT", | ||
"dependencies": { | ||
"@grammyjs/types": "^3.1.1", | ||
"debug": "^4.3.4", | ||
@@ -26,3 +25,3 @@ "o-son": "^1.0.1" | ||
"peerDependencies": { | ||
"grammy": "^1.10.0" | ||
"grammy": "^1.20.1" | ||
}, | ||
@@ -29,0 +28,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
84530
3
1911
- Removed@grammyjs/types@^3.1.1