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

@telegraf/types

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@telegraf/types - npm Package Compare versions

Comparing version 7.0.1 to 7.1.0

16

manage.d.ts

@@ -161,2 +161,4 @@ import type { Location, Message, PhotoSize } from "./message.js";

slow_mode_delay?: number;
/** For supergroups, the minimum number of boosts that a non-administrator user needs to add in order to ignore slow mode and chat permissions. Returned only in getChat. */
unrestrict_boost_count?: number;
/** True, if aggressive anti-spam checks are enabled in the supergroup. The field is only available to chat administrators. Returned only in getChat. */

@@ -168,2 +170,4 @@ has_aggressive_anti_spam_enabled?: true;

sticker_set_name?: string;
/** For supergroups, the name of the group's custom emoji sticker set. Custom emoji from this set can be used by all users and bots in the group. Returned only in getChat. */
custom_emoji_sticker_set_name?: string;
/** For supergroups, the location to which the supergroup is connected. Returned only in getChat. */

@@ -227,3 +231,3 @@ location?: ChatLocation;

is_anonymous: boolean;
/** True, if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege */
/** True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages and ignore slow mode. Implied by any other administrator privilege */
can_manage_chat: boolean;

@@ -248,5 +252,5 @@ /** True, if the administrator can delete messages of other users */

can_pin_messages?: boolean;
/** True, if the administrator can post stories in the channel; channels only */
/** True, if the administrator can post stories to the chat */
can_post_stories?: boolean;
/** True, if the administrator can edit stories posted by other users; channels only */
/** True, if the administrator can edit stories posted by other users */
can_edit_stories?: boolean;

@@ -287,3 +291,3 @@ /** True, if the administrator can delete stories posted by other users */

is_anonymous: boolean;
/** True, if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege */
/** True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages and ignore slow mode. Implied by any other administrator privilege */
can_manage_chat: boolean;

@@ -308,5 +312,5 @@ /** True, if the administrator can delete messages of other users */

can_pin_messages?: boolean;
/** True, if the administrator can post stories in the channel; channels only */
/** True, if the administrator can post stories to the chat */
can_post_stories?: boolean;
/** True, if the administrator can edit stories posted by other users; channels only */
/** True, if the administrator can edit stories posted by other users */
can_edit_stories?: boolean;

@@ -313,0 +317,0 @@ /** True, if the administrator can delete stories posted by other users */

@@ -23,2 +23,4 @@ import type { Chat, File, User } from "./manage.js";

interface CommonMessage extends ServiceMessage {
/** If the sender of the message boosted the chat, the number of boosts added by the user */
sender_boost_count?: number;
/** Information about the original message for forwarded messages */

@@ -34,2 +36,4 @@ forward_origin?: MessageOrigin;

quote?: TextQuote;
/** For replies to a story, the original story */
reply_to_story?: Story;
/** Bot through which the message was sent */

@@ -206,2 +210,6 @@ via_bot?: User;

}
interface BoostAddedMessage extends ServiceMessage {
/** Service message: user boosted the chat */
boost_added: ChatBoostAdded;
}
interface ForumTopicCreatedMessage extends ServiceMessage {

@@ -269,3 +277,3 @@ /** Service message: forum topic created */

/** 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`. */
export type ServiceMessageBundle = Message.NewChatMembersMessage | Message.LeftChatMemberMessage | Message.NewChatTitleMessage | Message.NewChatPhotoMessage | Message.DeleteChatPhotoMessage | Message.GroupChatCreatedMessage | Message.SupergroupChatCreated | Message.ChannelChatCreatedMessage | Message.MessageAutoDeleteTimerChangedMessage | Message.MigrateToChatIdMessage | Message.MigrateFromChatIdMessage | Message.PinnedMessageMessage | Message.InvoiceMessage | Message.SuccessfulPaymentMessage | Message.UsersSharedMessage | Message.ChatSharedMessage | Message.ConnectedWebsiteMessage | Message.WriteAccessAllowedMessage | Message.PassportDataMessage | Message.ProximityAlertTriggeredMessage | Message.ForumTopicCreatedMessage | Message.ForumTopicEditedMessage | Message.ForumTopicClosedMessage | Message.ForumTopicReopenedMessage | Message.GeneralForumTopicHiddenMessage | Message.GeneralForumTopicUnhiddenMessage | Message.GiveawayCreatedMessage | Message.GiveawayMessage | Message.GiveawayWinnersMessage | Message.GiveawayCompletedMessage | Message.VideoChatScheduledMessage | Message.VideoChatStartedMessage | Message.VideoChatEndedMessage | Message.VideoChatParticipantsInvitedMessage | Message.WebAppDataMessage;
export type ServiceMessageBundle = Message.NewChatMembersMessage | Message.LeftChatMemberMessage | Message.NewChatTitleMessage | Message.NewChatPhotoMessage | Message.DeleteChatPhotoMessage | Message.GroupChatCreatedMessage | Message.SupergroupChatCreated | Message.ChannelChatCreatedMessage | Message.MessageAutoDeleteTimerChangedMessage | Message.MigrateToChatIdMessage | Message.MigrateFromChatIdMessage | Message.PinnedMessageMessage | Message.InvoiceMessage | Message.SuccessfulPaymentMessage | Message.UsersSharedMessage | Message.ChatSharedMessage | Message.ConnectedWebsiteMessage | Message.WriteAccessAllowedMessage | Message.PassportDataMessage | Message.ProximityAlertTriggeredMessage | Message.BoostAddedMessage | Message.ForumTopicCreatedMessage | Message.ForumTopicEditedMessage | Message.ForumTopicClosedMessage | Message.ForumTopicReopenedMessage | Message.GeneralForumTopicHiddenMessage | Message.GeneralForumTopicUnhiddenMessage | Message.GiveawayCreatedMessage | Message.GiveawayMessage | Message.GiveawayWinnersMessage | Message.GiveawayCompletedMessage | Message.VideoChatScheduledMessage | Message.VideoChatStartedMessage | Message.VideoChatEndedMessage | Message.VideoChatParticipantsInvitedMessage | Message.WebAppDataMessage;
/** 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`. */

@@ -831,2 +839,6 @@ export type CommonMessageBundle = Message.AnimationMessage | Message.AudioMessage | Message.ContactMessage | Message.DiceMessage | Message.DocumentMessage | Message.GameMessage | Message.LocationMessage | Message.PhotoMessage | Message.PollMessage | Message.StickerMessage | Message.StoryMessage | Message.TextMessage | Message.VenueMessage | Message.VideoMessage | Message.VideoNoteMessage | Message.VoiceMessage;

export interface Story {
/** Chat that posted the story */
chat: Chat;
/** Unique identifier for the story in the chat */
id: number;
}

@@ -847,2 +859,7 @@ /** This object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user. */

}
/** This object represents a service message about a user boosting a chat. */
export interface ChatBoostAdded {
/** Number of boosts added by the user */
boost_count: number;
}
/** This object represents a service message about a new forum topic created in the chat. */

@@ -849,0 +866,0 @@ export interface ForumTopicCreated {

{
"name": "@telegraf/types",
"private": false,
"version": "7.0.1",
"version": "7.1.0",
"description": "Type declarations for the Telegram API",

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

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