Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gramio/contexts

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gramio/contexts - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

2

package.json
{
"name": "@gramio/contexts",
"version": "0.0.3",
"version": "0.0.4",
"type": "commonjs",

@@ -5,0 +5,0 @@ "description": "WIP",

@@ -7,4 +7,4 @@ import {

} from "@gramio/types";
import { contextsMappings } from "#utils";
import * as Contexts from "./contexts";
import * as Attachments from "./structures/attachments";

@@ -17,5 +17,54 @@

export type ContextsMapping<Bot extends BotLike> = {
[K in keyof typeof contextsMappings]: (typeof contextsMappings)[K] & {
bot: Bot;
};
callback_query: Contexts.CallbackQueryContext<Bot>;
chat_join_request: Contexts.ChatJoinRequestContext<Bot>;
chat_member: Contexts.ChatMemberContext<Bot>;
my_chat_member: Contexts.ChatMemberContext<Bot>;
chosen_inline_result: Contexts.ChosenInlineResultContext<Bot>;
delete_chat_photo: Contexts.DeleteChatPhotoContext<Bot>;
group_chat_created: Contexts.GroupChatCreatedContext<Bot>;
inline_query: Contexts.InlineQueryContext<Bot>;
invoice: Contexts.InvoiceContext<Bot>;
left_chat_member: Contexts.LeftChatMemberContext<Bot>;
location: Contexts.LocationContext<Bot>;
message_auto_delete_timer_changed: Contexts.MessageAutoDeleteTimerChangedContext<Bot>;
message: Contexts.MessageContext<Bot>;
channel_post: Contexts.MessageContext<Bot>;
edited_message: Contexts.MessageContext<Bot>;
edited_channel_post: Contexts.MessageContext<Bot>;
migrate_from_chat_id: Contexts.MigrateFromChatIdContext<Bot>;
migrate_to_chat_id: Contexts.MigrateToChatIdContext<Bot>;
new_chat_members: Contexts.NewChatMembersContext<Bot>;
new_chat_photo: Contexts.NewChatPhotoContext<Bot>;
new_chat_title: Contexts.NewChatTitleContext<Bot>;
passport_data: Contexts.PassportDataContext<Bot>;
pinned_message: Contexts.PinnedMessageContext<Bot>;
poll_answer: Contexts.PollAnswerContext<Bot>;
poll: Contexts.PollContext<Bot>;
pre_checkout_query: Contexts.PreCheckoutQueryContext<Bot>;
proximity_alert_triggered: Contexts.ProximityAlertTriggeredContext<Bot>;
write_access_allowed: Contexts.WriteAccessAllowedContext<Bot>;
boost_added: Contexts.BoostAddedContext<Bot>;
forum_topic_created: Contexts.ForumTopicCreatedContext<Bot>;
forum_topic_edited: Contexts.ForumTopicEditedContext<Bot>;
forum_topic_closed: Contexts.ForumTopicClosedContext<Bot>;
forum_topic_reopened: Contexts.ForumTopicReopenedContext<Bot>;
general_forum_topic_hidden: Contexts.GeneralForumTopicHiddenContext<Bot>;
general_forum_topic_unhidden: Contexts.GeneralForumTopicUnhiddenContext<Bot>;
shipping_query: Contexts.ShippingQueryContext<Bot>;
successful_payment: Contexts.SuccessfulPaymentContext<Bot>;
users_shared: Contexts.UsersSharedContext<Bot>;
chat_shared: Contexts.ChatSharedContext<Bot>;
video_chat_ended: Contexts.VideoChatEndedContext<Bot>;
video_chat_participants_invited: Contexts.VideoChatParticipantsInvitedContext<Bot>;
video_chat_scheduled: Contexts.VideoChatScheduledContext<Bot>;
video_chat_started: Contexts.VideoChatStartedContext<Bot>;
web_app_data: Contexts.WebAppDataContext<Bot>;
service_message: Contexts.MessageContext<Bot>;
message_reaction: Contexts.MessageReactionContext<Bot>;
message_reaction_count: Contexts.MessageReactionCountContext<Bot>;
chat_boost: Contexts.ChatBoostContext<Bot>;
removed_chat_boost: Contexts.RemovedChatBoostContext<Bot>;
giveaway_created: Contexts.GiveawayCreatedContext<Bot>;
giveaway_completed: Contexts.GiveawayCompletedContext<Bot>;
giveaway_winners: Contexts.GiveawayWinnersContext<Bot>;
};

@@ -26,3 +75,3 @@

Name extends keyof ContextsMapping<Bot>,
> = InstanceType<(typeof contextsMappings)[Name]>;
> = InstanceType<ContextsMapping<Bot>[Name]>;

@@ -29,0 +78,0 @@ export type MessageEventName =

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc