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

@grammyjs/types

Package Overview
Dependencies
Maintainers
1
Versions
85
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.2.6 to 2.3.0

8

bot-command-scope.d.ts

@@ -25,8 +25,8 @@ /** This object represents the scope to which bot commands are applied. Currently, the following 7 scopes are supported:

- botCommandScopeChatMember
- botCommandScopeChatAdministrators + language_code (admins only)
- botCommandScopeChatAdministrators (admins only)
- botCommandScopeChatAdministrators + language_code (administrators only)
- botCommandScopeChatAdministrators (administrators only)
- botCommandScopeChat + language_code
- botCommandScopeChat
- botCommandScopeAllChatAdministrators + language_code (admins only)
- botCommandScopeAllChatAdministrators (admins only)
- botCommandScopeAllChatAdministrators + language_code (administrators only)
- botCommandScopeAllChatAdministrators (administrators only)
- botCommandScopeAllGroupChats + language_code

@@ -33,0 +33,0 @@ - botCommandScopeAllGroupChats

@@ -212,3 +212,3 @@ import { Chat, User } from "./manage";

gif_height?: number;
/** Duration of the GIF */
/** Duration of the GIF in seconds */
gif_duration?: number;

@@ -243,3 +243,3 @@ /** URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result */

mpeg4_height?: number;
/** Video duration */
/** Video duration in seconds */
mpeg4_duration?: number;

@@ -274,3 +274,3 @@ /** URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result */

mime_type: "text/html" | "video/mp4";
/** URL of the thumbnail (jpeg only) for the video */
/** URL of the thumbnail (JPEG only) for the video */
thumb_url: string;

@@ -377,3 +377,3 @@ /** Title for the result */

input_message_content?: InputMessageContent;
/** URL of the thumbnail (jpeg only) for the file */
/** URL of the thumbnail (JPEG only) for the file */
thumb_url?: string;

@@ -380,0 +380,0 @@ /** Thumbnail width */

@@ -89,5 +89,3 @@ import { Location, Message, PhotoSize } from "./message";

export interface SupergroupChat
extends AbstractChat,
UserNameChat,
TitleChat {
extends AbstractChat, UserNameChat, TitleChat {
type: "supergroup";

@@ -140,6 +138,4 @@ }

export interface SupergroupGetChat
extends SupergroupChat,
MultiUserGetChat,
LargeGetChat {
/** For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged user. Returned only in getChat. */
extends SupergroupChat, MultiUserGetChat, LargeGetChat {
/** For supergroups, the minimum allowed delay between consecutive messages sent by each unpriviledged user; in seconds. Returned only in getChat. */
slow_mode_delay?: number;

@@ -195,2 +191,4 @@ /** For supergroups, name of group sticker set. Returned only in getChat. */

creator: User;
/** True, if users joining the chat via the link need to be approved by chat administrators */
creates_join_request: boolean;
/** True, if the link is primary */

@@ -200,2 +198,4 @@ is_primary: boolean;

is_revoked: boolean;
/** Invite link name */
name?: string;
/** Point in time (Unix timestamp) when the link will expire or has been expired */

@@ -205,2 +205,4 @@ expire_date?: number;

member_limit?: number;
/** Number of pending join requests created using this link */
pending_join_request_count?: number;
}

@@ -339,2 +341,16 @@

/** Represents a join request sent to a chat. */
export interface ChatJoinRequest {
/** Chat to which the request was sent */
chat: Chat;
/** User that sent the join request */
from: User;
/** Date the request was sent in Unix time */
date: number;
/** Bio of the user. */
bio?: string;
/** Chat invite link that was used by the user to send the join request */
invite_link?: ChatInviteLink;
}
/** Describes actions that a non-administrator user is allowed to take in a chat. */

@@ -382,3 +398,3 @@ export interface ChatPermissions {

file_unique_id: string;
/** File size, if known */
/** File size in bytes, if known */
file_size?: number;

@@ -385,0 +401,0 @@ /** File path. Use https://api.telegram.org/file/bot<token>/<file_path> to get the file. */

@@ -71,39 +71,55 @@ import { InlineKeyboardMarkup } from "./inline";

export type VenueMessage = LocationMessage & MsgWith<"venue">;
export type NewChatMembersMessage = ServiceMessage &
MsgWith<"new_chat_members">;
export type LeftChatMemberMessage = ServiceMessage &
MsgWith<"left_chat_member">;
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 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 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">;
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">;
}

@@ -343,3 +359,3 @@

height: number;
/** File size */
/** File size in bytes */
file_size?: number;

@@ -366,3 +382,3 @@ }

mime_type?: string;
/** File size */
/** File size in bytes */
file_size?: number;

@@ -387,3 +403,3 @@ }

mime_type?: string;
/** File size */
/** File size in bytes */
file_size?: number;

@@ -406,3 +422,3 @@ /** Thumbnail of the album cover to which the music file belongs */

mime_type?: string;
/** File size */
/** File size in bytes */
file_size?: number;

@@ -429,3 +445,3 @@ }

mime_type?: string;
/** File size */
/** File size in bytes */
file_size?: number;

@@ -446,3 +462,3 @@ }

thumb?: PhotoSize;
/** File size */
/** File size in bytes */
file_size?: number;

@@ -461,3 +477,3 @@ }

mime_type?: string;
/** File size */
/** File size in bytes */
file_size?: number;

@@ -544,3 +560,3 @@ }

horizontal_accuracy?: number;
/** Time relative to the message sending date, during which the location can be updated, in seconds. For active live locations only. */
/** Time relative to the message sending date, during which the location can be updated; in seconds. For active live locations only. */
live_period?: number;

@@ -583,3 +599,3 @@ /** The direction in which user is moving, in degrees; 1-360. For active live locations only. */

export interface MessageAutoDeleteTimerChanged {
/** New auto-delete time for messages in the chat */
/** New auto-delete time for messages in the chat; in seconds */
message_auto_delete_time: number;

@@ -599,3 +615,3 @@ }

export interface VoiceChatEnded {
/** Voice chat duration; in seconds */
/** Voice chat duration in seconds */
duration: number;

@@ -630,3 +646,3 @@ }

mask_position?: MaskPosition;
/** File size */
/** File size in bytes */
file_size?: number;

@@ -633,0 +649,0 @@ }

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

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

@@ -15,3 +15,3 @@ /** Contains information about Telegram Passport data shared with the bot by the user. */

file_unique_id: string;
/** File size */
/** File size in bytes */
file_size: number;

@@ -18,0 +18,0 @@ /** Unix time when the file was uploaded */

import { CallbackQuery } from "./callback";
import { ChosenInlineResult, InlineQuery } from "./inline";
import { Chat, ChatMemberUpdated, User } from "./manage";
import { Chat, ChatJoinRequest, ChatMemberUpdated, User } from "./manage";
import { Message, Poll, PollAnswer } from "./message";

@@ -69,2 +69,4 @@ import { PreCheckoutQuery, ShippingQuery } from "./payment";

chat_member?: ChatMemberUpdated;
/** A request to join the chat has been sent. The bot must have the can_invite_users administrator right in the chat to receive these updates. */
chat_join_request?: ChatJoinRequest;
}

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