Comparing version 0.2.0 to 0.2.1
@@ -310,2 +310,5 @@ import { CallbackData } from '@gramio/callback-data'; | ||
onError(handler: Hooks.OnError<Errors, Context<AnyBot> & Derives["global"]>): this; | ||
/** | ||
* ! ** At the moment, it can only pick up types** */ | ||
extend<NewPlugin extends AnyPlugin>(plugin: MaybePromise<NewPlugin>): Plugin<Errors & NewPlugin["_"]["Errors"], Derives & NewPlugin["_"]["Derives"]>; | ||
} | ||
@@ -599,10 +602,11 @@ | ||
declare class Bot<Errors extends ErrorDefinitions = {}, Derives extends DeriveDefinitions = DeriveDefinitions> { | ||
/** @deprecated use `~` instead*/ | ||
_: { | ||
/** @internal. Remap generic */ | ||
/** @deprecated @internal. Remap generic */ | ||
derives: Derives; | ||
}; | ||
/** @internal. Remap generic */ | ||
/** @deprecated use `~.derives` instead @internal. Remap generic */ | ||
__Derives: Derives; | ||
"~": { | ||
/** @internal. Remap generic */ | ||
/** @deprecated @internal. Remap generic */ | ||
derives: Derives; | ||
@@ -609,0 +613,0 @@ }; |
@@ -311,2 +311,7 @@ import fs from 'node:fs/promises'; | ||
} | ||
/** | ||
* ! ** At the moment, it can only pick up types** */ | ||
extend(plugin) { | ||
return this; | ||
} | ||
} | ||
@@ -474,7 +479,8 @@ _init$1 = __decoratorStart$1(); | ||
class Bot { | ||
/** @deprecated use `~` instead*/ | ||
_ = { | ||
/** @internal. Remap generic */ | ||
/** @deprecated @internal. Remap generic */ | ||
derives: {} | ||
}; | ||
/** @internal. Remap generic */ | ||
/** @deprecated use `~.derives` instead @internal. Remap generic */ | ||
__Derives; | ||
@@ -573,3 +579,3 @@ "~" = this._; | ||
const debug$api$method = debug$api.extend(method); | ||
const url = `${this.options.api.baseURL}${this.options.token}/${method}`; | ||
const url = `${this.options.api.baseURL}${this.options.token}/${this.options.api.useTest ? "test/" : ""}${method}`; | ||
const reqOptions = { | ||
@@ -576,0 +582,0 @@ method: "POST", |
{ | ||
"name": "gramio", | ||
"type": "module", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Powerful, extensible and really type-safe Telegram Bot API framework", | ||
@@ -6,0 +6,0 @@ "main": "dist/index.cjs", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
166295
3535