Skip to content

GramIO API Reference / @gramio/contexts/dist / CloneMixin

Class: CloneMixin<Bot, C, Options> ​

Defined in: contexts/index.d.ts:5934

This object represents a mixin which has clone(options?) method

Extends ​

  • Context<Bot>.CloneMixinMetadata<Options["payload"]>

Extended by ​

Type Parameters ​

Type Parameter
Bot extends BotLike
C extends Context<Bot> & Constructor<C>
Options extends Record<string, any>

Constructors ​

Constructor ​

new CloneMixin<Bot, C, Options>(): CloneMixin<Bot, C, Options>

Returns ​

CloneMixin<Bot, C, Options>

Inherited from ​

Context.constructor

Properties ​

PropertyModifierTypeDescriptionInherited fromDefined in
botpublicBot-Context.botcontexts/index.d.ts:5240
payloadpublicOptions["payload"]The raw data that is used for this Context-contexts/index.d.ts:5931
update?publicTelegramUpdate-Context.updatecontexts/index.d.ts:5242
updateId?publicnumber-Context.updateIdcontexts/index.d.ts:5241
updateTypeprotectedUpdateName-Context.updateTypecontexts/index.d.ts:5243

Accessors ​

[toStringTag] ​

Get Signature ​

get [toStringTag](): string

Defined in: contexts/index.d.ts:5246

MDN

Returns ​

string

Inherited from ​

Context.[toStringTag]

Methods ​

clone() ​

clone(options?): C

Defined in: contexts/index.d.ts:5935

Parameters ​

ParameterType
options?Options

Returns ​

C


is() ​

is<T>(rawTypes): this is InstanceType<ContextsMapping<Bot>[T]> & GetDerives<Bot, T> & (IsAny<Bot["__Derives"]> extends true ? {} : Bot["__Derives"] extends {} ? Bot["__Derives"]["global"] & Bot["__Derives"][T] : {})

Defined in: contexts/index.d.ts:5249

Type Parameters ​

Type Parameter
T extends UpdateName

Parameters ​

ParameterType
rawTypesMaybeArray<SoftString<T>>

Returns ​

this is InstanceType<ContextsMapping<Bot>[T]> & GetDerives<Bot, T> & (IsAny<Bot["__Derives"]> extends true ? {} : Bot["__Derives"] extends {} ? Bot["__Derives"]["global"] & Bot["__Derives"][T] : {})

Inherited from ​

Context.is