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
BoostAddedContextBusinessConnectionContextBusinessMessagesDeletedContextCallbackQueryContextChatBackgroundSetContextChatBoostContextChatJoinRequestContextChatMemberContextChatOwnerChangedContextChatOwnerLeftContextChatSharedContextChecklistTasksAddedContextChecklistTasksDoneContextChosenInlineResultContextDeleteChatPhotoContextDirectMessagePriceChangedContextForumTopicClosedContextForumTopicCreatedContextForumTopicEditedContextForumTopicReopenedContextGeneralForumTopicHiddenContextGeneralForumTopicUnhiddenContextGiftContextGiftUpgradeSentContextGiveawayCompletedContextGiveawayCreatedContextGiveawayWinnersContextGroupChatCreatedContextInlineQueryContextInvoiceContextLeftChatMemberContextLocationContextMessageAutoDeleteTimerChangedContextMessageContextMessageReactionContextMessageReactionCountContextMigrateFromChatIdContextMigrateToChatIdContextNewChatMembersContextNewChatPhotoContextNewChatTitleContextPaidMediaPurchasedContextPaidMessagePriceChangedContextPassportDataContextPinnedMessageContextPollAnswerContextPollContextPreCheckoutQueryContextProximityAlertTriggeredContextRefundedPaymentContextRemovedChatBoostContextShippingQueryContextSuccessfulPaymentContextSuggestedPostApprovalFailedContextSuggestedPostApprovedContextSuggestedPostDeclinedContextSuggestedPostPaidContextSuggestedPostRefundedContextUniqueGiftContextUsersSharedContextVideoChatEndedContextVideoChatParticipantsInvitedContextVideoChatScheduledContextVideoChatStartedContextWebAppDataContextWriteAccessAllowedContext
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
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
bot | public | Bot | - | Context.bot | contexts/index.d.ts:4726 |
payload | public | Options["payload"] | The raw data that is used for this Context | - | contexts/index.d.ts:5269 |
update? | public | TelegramUpdate | - | Context.update | contexts/index.d.ts:4728 |
updateId? | public | number | - | Context.updateId | contexts/index.d.ts:4727 |
updateType | protected | UpdateName | - | Context.updateType | contexts/index.d.ts:4729 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:4732
Returns
string
Inherited from
Methods
clone()
clone(
options?):C
Defined in: contexts/index.d.ts:5273
Parameters
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
rawTypes | MaybeArray<SoftString<T>> |
Returns
this is InstanceType<ContextsMapping<Bot>[T]> & Bot["__Derives"]["global"] & Bot["__Derives"][T] & (Bot["__Derives"] extends {} ? Bot["__Derives"]["global"] & Bot["__Derives"][T] : {})