GramIO API Reference / @gramio/contexts/dist / Context
Class: Context<Bot>
Defined in: contexts/index.d.ts:4725
Main base context
Extended by
BoostAddedContextBusinessConnectionContextBusinessMessagesDeletedContextCallbackQueryContextChatActionMixinChatBackgroundSetContextChatBoostContextChatControlMixinChatInviteControlMixinChatJoinRequestContextChatMemberContextChatMemberControlMixinChatOwnerChangedContextChatOwnerLeftContextChatSenderControlMixinChatSharedContextChecklistTasksAddedContextChecklistTasksDoneContextChosenInlineResultContextCloneMixinDeleteChatPhotoContextDirectMessagePriceChangedContextDownloadMixinForumMixinForumTopicClosedContextForumTopicCreatedContextForumTopicEditedContextForumTopicReopenedContextGeneralForumTopicHiddenContextGeneralForumTopicUnhiddenContextGiftContextGiftUpgradeSentContextGiveawayCompletedContextGiveawayCreatedContextGiveawayWinnersContextGroupChatCreatedContextInlineQueryContextInvoiceContextLeftChatMemberContextLocationContextMessageAutoDeleteTimerChangedContextMessageContextMessageReactionContextMessageReactionCountContextMigrateFromChatIdContextMigrateToChatIdContextNewChatMembersContextNewChatPhotoContextNewChatTitleContextNodeMixinPaidMediaPurchasedContextPaidMessagePriceChangedContextPassportDataContextPinnedMessageContextPinsMixinPollAnswerContextPollContextPreCheckoutQueryContextProximityAlertTriggeredContextRefundedPaymentContextRemovedChatBoostContextSendMixinShippingQueryContextSuccessfulPaymentContextSuggestedPostApprovalFailedContextSuggestedPostApprovedContextSuggestedPostDeclinedContextSuggestedPostPaidContextSuggestedPostRefundedContextUniqueGiftContextUsersSharedContextVideoChatEndedContextVideoChatParticipantsInvitedContextVideoChatScheduledContextVideoChatStartedContextWebAppDataContextWriteAccessAllowedContext
Type Parameters
| Type Parameter |
|---|
Bot extends BotLike |
Constructors
Constructor
new Context<
Bot>(options):Context<Bot>
Defined in: contexts/index.d.ts:4730
Parameters
| Parameter | Type |
|---|---|
options | ContextOptions<Bot> |
Returns
Context<Bot>
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
bot | public | Bot | contexts/index.d.ts:4726 |
update? | public | TelegramUpdate | contexts/index.d.ts:4728 |
updateId? | public | number | contexts/index.d.ts:4727 |
updateType | protected | UpdateName | contexts/index.d.ts:4729 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:4732
Returns
string
Methods
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] : {})