Skip to content

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

Class: CloneMixin<Bot, C, Options>

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

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:4726
payloadpublicOptions["payload"]The raw data that is used for this Context-contexts/index.d.ts:5269
update?publicTelegramUpdate-Context.updatecontexts/index.d.ts:4728
updateId?publicnumber-Context.updateIdcontexts/index.d.ts:4727
updateTypeprotectedUpdateName-Context.updateTypecontexts/index.d.ts:4729

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

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

MDN

Returns

string

Inherited from

Context.[toStringTag]

Methods

clone()

clone(options?): C

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

Parameters

ParameterType
options?Options

Returns

C


is()

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

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

Type Parameters

Type Parameter
T extends UpdateName

Parameters

ParameterType
rawTypesMaybeArray<SoftString<T>>

Returns

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

Inherited from

Context.is