Socket
Socket
Sign inDemoInstall

@grammyjs/types

Package Overview
Dependencies
Maintainers
3
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@grammyjs/types - npm Package Compare versions

Comparing version 2.1.2 to 2.1.3

141

message.d.ts

@@ -6,2 +6,7 @@ import { InlineKeyboardMarkup } from "./inline";

type MsgWith<P extends keyof Message> = Record<
P,
Exclude<Message[P], undefined>
>;
export namespace Message {

@@ -55,86 +60,54 @@ interface ServiceMessage {

export type TextMessage = CommonMessage & { text: Message["text"] };
export type AudioMessage = CaptionableMessage & { audio: Message["audio"] };
export type DocumentMessage = CaptionableMessage & {
document: Message["document"];
};
export type AnimationMessage = DocumentMessage & {
animation: Message["animation"];
};
export type PhotoMessage = MediaMessage & { photo: Message["photo"] };
export type StickerMessage = CommonMessage & { sticker: Message["sticker"] };
export type VideoMessage = MediaMessage & { video: Message["video"] };
export type VideoNoteMessage = CommonMessage & {
video_note: Message["video_note"];
};
export type VoiceMessage = CaptionableMessage & { voice: Message["voice"] };
export type ContactMessage = CommonMessage & { contact: Message["contact"] };
export type DiceMessage = CommonMessage & { dice: Message["dice"] };
export type GameMessage = CommonMessage & { game: Message["game"] };
export type PollMessage = CommonMessage & { poll: Message["poll"] };
export type LocationMessage = CommonMessage & {
location: Message["location"];
};
export type VenueMessage = LocationMessage & { venue: Message["venue"] };
export type NewChatMembersMessage = ServiceMessage & {
new_chat_members: Message["new_chat_members"];
};
export type LeftChatMemberMessage = ServiceMessage & {
left_chat_member: Message["left_chat_member"];
};
export type NewChatTitleMessage = ServiceMessage & {
new_chat_title: Message["new_chat_title"];
};
export type NewChatPhotoMessage = ServiceMessage & {
new_chat_photo: Message["new_chat_photo"];
};
export type DeleteChatPhotoMessage = ServiceMessage & {
delete_chat_photo: Message["delete_chat_photo"];
};
export type GroupChatCreatedMessage = ServiceMessage & {
group_chat_created: Message["group_chat_created"];
};
export type SupergroupChatCreated = ServiceMessage & {
supergroup_chat_created: Message["supergroup_chat_created"];
};
export type ChannelChatCreatedMessage = ServiceMessage & {
channel_chat_created: Message["channel_chat_created"];
};
export type MessageAutoDeleteTimerChangedMessage = ServiceMessage & {
message_auto_delete_timer_changed: Message["message_auto_delete_timer_changed"];
};
export type MigrateToChatIdMessage = ServiceMessage & {
migrate_to_chat_id: Message["migrate_to_chat_id"];
};
export type MigrateFromChatIdMessage = ServiceMessage & {
migrate_from_chat_id: Message["migrate_from_chat_id"];
};
export type PinnedMessageMessage = ServiceMessage & {
pinned_message: Message["pinned_message"];
};
export type InvoiceMessage = ServiceMessage & { invoice: Message["invoice"] };
export type SuccessfulPaymentMessage = ServiceMessage & {
successful_payment: Message["successful_payment"];
};
export type ConnectedWebsiteMessage = ServiceMessage & {
connected_website: Message["connected_website"];
};
export type PassportDataMessage = ServiceMessage & {
passport_data: Message["passport_data"];
};
export type ProximityAlertTriggeredMessage = ServiceMessage & {
proximity_alert_triggered: Message["proximity_alert_triggered"];
};
export type VoiceChatScheduledMessage = ServiceMessage & {
voice_chat_scheduled: Message["voice_chat_scheduled"];
};
export type VoiceChatStartedMessage = ServiceMessage & {
voice_chat_started: Message["voice_chat_started"];
};
export type VoiceChatEndedMessage = ServiceMessage & {
voice_chat_ended: Message["voice_chat_ended"];
};
export type VoiceChatParticipantsInvitedMessage = ServiceMessage & {
voice_chat_participants_invited: Message["voice_chat_participants_invited"];
};
export type TextMessage = CommonMessage & MsgWith<"text">;
export type AudioMessage = CaptionableMessage & MsgWith<"audio">;
export type DocumentMessage = CaptionableMessage & MsgWith<"document">;
export type AnimationMessage = DocumentMessage & MsgWith<"animation">;
export type PhotoMessage = MediaMessage & MsgWith<"photo">;
export type StickerMessage = CommonMessage & MsgWith<"sticker">;
export type VideoMessage = MediaMessage & MsgWith<"video">;
export type VideoNoteMessage = CommonMessage & MsgWith<"video_note">;
export type VoiceMessage = CaptionableMessage & MsgWith<"voice">;
export type ContactMessage = CommonMessage & MsgWith<"contact">;
export type DiceMessage = CommonMessage & MsgWith<"dice">;
export type GameMessage = CommonMessage & MsgWith<"game">;
export type PollMessage = CommonMessage & MsgWith<"poll">;
export type LocationMessage = CommonMessage & MsgWith<"location">;
export type VenueMessage = LocationMessage & MsgWith<"venue">;
export type NewChatMembersMessage = ServiceMessage &
MsgWith<"new_chat_members">;
export type LeftChatMemberMessage = ServiceMessage &
MsgWith<"left_chat_member">;
export type NewChatTitleMessage = ServiceMessage & MsgWith<"new_chat_title">;
export type NewChatPhotoMessage = ServiceMessage & MsgWith<"new_chat_photo">;
export type DeleteChatPhotoMessage = ServiceMessage &
MsgWith<"delete_chat_photo">;
export type GroupChatCreatedMessage = ServiceMessage &
MsgWith<"group_chat_created">;
export type SupergroupChatCreated = ServiceMessage &
MsgWith<"supergroup_chat_created">;
export type ChannelChatCreatedMessage = ServiceMessage &
MsgWith<"channel_chat_created">;
export type MessageAutoDeleteTimerChangedMessage = ServiceMessage &
MsgWith<"message_auto_delete_timer_changed">;
export type MigrateToChatIdMessage = ServiceMessage &
MsgWith<"migrate_to_chat_id">;
export type MigrateFromChatIdMessage = ServiceMessage &
MsgWith<"migrate_from_chat_id">;
export type PinnedMessageMessage = ServiceMessage & MsgWith<"pinned_message">;
export type InvoiceMessage = ServiceMessage & MsgWith<"invoice">;
export type SuccessfulPaymentMessage = ServiceMessage &
MsgWith<"successful_payment">;
export type ConnectedWebsiteMessage = ServiceMessage &
MsgWith<"connected_website">;
export type PassportDataMessage = ServiceMessage & MsgWith<"passport_data">;
export type ProximityAlertTriggeredMessage = ServiceMessage &
MsgWith<"proximity_alert_triggered">;
export type VoiceChatScheduledMessage = ServiceMessage &
MsgWith<"voice_chat_scheduled">;
export type VoiceChatStartedMessage = ServiceMessage &
MsgWith<"voice_chat_started">;
export type VoiceChatEndedMessage = ServiceMessage &
MsgWith<"voice_chat_ended">;
export type VoiceChatParticipantsInvitedMessage = ServiceMessage &
MsgWith<"voice_chat_participants_invited">;
}

@@ -141,0 +114,0 @@

{
"name": "@grammyjs/types",
"version": "2.1.2",
"version": "2.1.3",
"description": "Telegram Bot API type declarations for grammY",

@@ -5,0 +5,0 @@ "main": "index.js",

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