Socket
Socket
Sign inDemoInstall

typegram

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typegram - npm Package Compare versions

Comparing version 3.1.7 to 3.1.8

40

message.d.ts

@@ -34,3 +34,3 @@ import { Boolean, Float, Integer, String, True } from "./alias";

/** For replies, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply. */
reply_to_message?: Message & { reply_to_message: undefined };
reply_to_message?: ReplyMessage;
/** Bot through which the message was sent */

@@ -159,3 +159,3 @@ via_bot?: User;

/** Specified message was pinned. Note that the Message object in this field will not contain further reply_to_message fields even if it is itself a reply. */
pinned_message: Message & { reply_to_message: undefined };
pinned_message: ReplyMessage;
}

@@ -180,21 +180,14 @@ export interface InvoiceMessage extends ServiceMessage {

/** Service message. A user in the chat triggered another user's proximity alert while sharing Live Location. */
proximity_alert_triggered?: ProximityAlertTriggered;
proximity_alert_triggered: ProximityAlertTriggered;
}
}
/** This object represents a message. */
export type Message =
| Message.AnimationMessage
| Message.AudioMessage
/** Helper type that bundles all possible `Message.ServiceMessage`s. More specifically, bundles all messages that do not have a `reply_to_message` field, i.e. are not a `Message.CommonMessage`. */
type ServiceMessageBundle =
| Message.ChannelChatCreatedMessage
| Message.ConnectedWebsiteMessage
| Message.ContactMessage
| Message.DeleteChatPhotoMessage
| Message.DiceMessage
| Message.DocumentMessage
| Message.GameMessage
| Message.GroupChatCreatedMessage
| Message.InvoiceMessage
| Message.LeftChatMemberMessage
| Message.LocationMessage
| Message.MigrateFromChatIdMessage

@@ -207,8 +200,18 @@ | Message.MigrateToChatIdMessage

| Message.ProximityAlertTriggeredMessage
| Message.PinnedMessageMessage
| Message.SuccessfulPaymentMessage
| Message.SupergroupChatCreated;
/** Helper type that bundles all possible `Message.CommonMessage`s. More specifically, bundles all messages that do have a `reply_to_message` field, i.e. are a `Message.CommonMessage`. */
type CommonMessageBundle =
| Message.AnimationMessage
| Message.AudioMessage
| Message.ContactMessage
| Message.DiceMessage
| Message.DocumentMessage
| Message.GameMessage
| Message.LocationMessage
| Message.PhotoMessage
| Message.PinnedMessageMessage
| Message.PollMessage
| Message.StickerMessage
| Message.SuccessfulPaymentMessage
| Message.SupergroupChatCreated
| Message.TextMessage

@@ -220,2 +223,9 @@ | Message.VenueMessage

type ReplyMessage =
| ServiceMessageBundle
| (CommonMessageBundle & { reply_to_message: undefined });
/** This object represents a message. */
export type Message = ServiceMessageBundle | CommonMessageBundle;
/** This object represents a unique message identifier. */

@@ -222,0 +232,0 @@ export interface MessageId {

{
"name": "typegram",
"version": "3.1.7",
"version": "3.1.8",
"description": "Type declarations for the Telegram API",

@@ -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