Socket
Socket
Sign inDemoInstall

@grammyjs/types

Package Overview
Dependencies
Maintainers
1
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 3.1.3 to 3.2.0

2

manage.d.ts

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

emoji_status_custom_emoji_id?: string;
/** Expiration date of the emoji status of the other party in a private chat, if any. Returned only in getChat. */
emoji_status_expiration_date?: number;
/** Bio of the other party in a private chat. Returned only in getChat. */

@@ -135,0 +137,0 @@ bio?: string;

4

markup.d.ts

@@ -30,5 +30,3 @@ import type { ChatAdministratorRights, User } from "./manage.js";

interface SwitchInlineButton extends AbstractInlineKeyboardButton {
/** If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. Can be empty, in which case just the bot's username will be inserted.
Note: This offers an easy way for users to start using your bot in inline mode when they are currently in a private chat with it. Especially useful when combined with switch_pm... actions – in this case the user will be automatically returned to the chat they switched from, skipping the chat selection screen. */
/** If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. Can be empty, in which case just the bot's username will be inserted. */
switch_inline_query: string;

@@ -35,0 +33,0 @@ }

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

type StickerMessage = CommonMessage & MsgWith<"sticker">;
type StoryMessage = CommonMessage & MsgWith<"story">;
type VideoMessage = MediaMessage & MsgWith<"video">;

@@ -129,2 +130,4 @@ type VideoNoteMessage = CommonMessage & MsgWith<"video_note">;

sticker?: Sticker;
/** Message is a forwarded story */
story?: Story;
/** Message is a video, information about the video */

@@ -260,7 +263,7 @@ video?: Video;

- Inside `pre` and `code` entities, all '`' and '\' characters must be escaped with a preceding '\' character.
- Inside `(...)` part of inline link definition, all ')' and '\' must be escaped with a preceding '\' character.
- Inside the `(...)` part of the inline link and custom emoji definition, all ')' and '\' must be escaped with a preceding '\' character.
- In all other places characters '_', '*', '[', ']', '(', ')', '~', '`', '>', '#', '+', '-', '=', '|', '{', '}', '.', '!' must be escaped with the preceding character '\'.
- In case of ambiguity between `italic` and `underline` entities `__` is always greadily treated from left to right as beginning or end of `underline` entity, so instead of `___italic underline___` use `___italic underline_\r__`, where `\r` is a character with code 13, which will be ignored.
- A valid emoji must be provided as an alternative value for the custom emoji. The emoji will be shown instead of the custom emoji in places where a custom emoji cannot be displayed (e.g., system notifications) or if the message is forwarded by a non-premium user. It is recommended to use the emoji from the emoji field of the custom emoji sticker.
- Custom emoji entities can only be used by bots that purchased additional usernames on Fragment.
- In all other places characters '_', '*', '[', ']', '(', ')', '~', '`', '>', '#', '+', '-', '=', '|', '{', '}', '.', '!' must be escaped with the preceding character '\'.
- In case of ambiguity between `italic` and `underline` entities `__` is always greadily treated from left to right as beginning or end of `underline` entity, so instead of `___italic underline___` use `___italic underline_\r__`, where `\r` is a character with code 13, which will be ignored.

@@ -503,5 +506,7 @@ #### HTML style

poll_id: string;
/** The user, who changed the answer to the poll */
user: User;
/** 0-based identifiers of answer options, chosen by the user. May be empty if the user retracted their vote. */
/** The chat that changed the answer to the poll, if the voter is anonymous */
voter_chat?: Chat;
/** The user that changed the answer to the poll, if the voter isn't anonymous */
user?: User;
/** 0-based identifiers of chosen answer options. May be empty if the vote was retracted. */
option_ids: number[];

@@ -570,2 +575,5 @@ }

}
/** This object represents a message about a forwarded story in the chat. Currently holds no information. */
export interface Story {
}
/** This object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user. */

@@ -572,0 +580,0 @@ export interface ProximityAlertTriggered {

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

@@ -5,0 +5,0 @@ "main": "mod.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