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.3.1 to 2.4.0

4

inline.d.ts

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

export interface UrlButton extends AbstractInlineKeyboardButton {
/** HTTP or tg:// url to be opened when button is pressed */
/** HTTP or tg:// url to be opened when the button is pressed. Links tg://user?id=<user_id> can be used to mention a user by their ID without using a username, if this is allowed by their privacy settings. */
url: string;

@@ -67,3 +67,3 @@ }

NOTE: This type of button must always be the first button in the first row. */
NOTE: This type of button must always be the first button in the first row and can only be used in invoice messages. */
pay: boolean;

@@ -70,0 +70,0 @@ }

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

message_auto_delete_time?: number;
/** True, if messages from the chat can't be forwarded to other chats. Returned only in getChat. */
has_protected_content?: true;
}

@@ -133,2 +135,4 @@ /** Internal type holding properties that those group, supergroup, and channel chats returned from `getChat` share. */

bio?: string;
/** True, if privacy settings of the other party in the private chat allows to use tg://user?id=<user_id> links only in chats with the user. Returned only in getChat. */
has_private_forwards?: true;
}

@@ -135,0 +139,0 @@ /** Internal type representing group chats returned from `getChat`. */

@@ -34,2 +34,4 @@ import { InlineKeyboardMarkup } from "./inline";

forward_date?: number;
/** True, if the message is a channel post that was automatically forwarded to the connected discussion group */
is_automatic_forward?: true;
/** 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. */

@@ -41,2 +43,4 @@ reply_to_message?: ReplyMessage;

edit_date?: number;
/** True, if the message can't be forwarded */
has_protected_content?: true;
/** Signature of the post author for messages in channels, or the custom title of an anonymous group administrator */

@@ -224,4 +228,4 @@ author_signature?: string;

- These links will work only if they are used inside an inline link. For example, they will not work, when used in an inline keyboard button or in a message text.
- These mentions are only guaranteed to work if the user has contacted the bot in the past, has sent a callback query to the bot via inline button or is a member in the group where he was mentioned.
- These links will work only if they are used inside an inline link or in an inline keyboard button. For example, they will not work, when used in a message text.
- These mentions are only guaranteed to work if the user has contacted the bot in the past, has sent a callback query to the bot via an inline button or is a member in the group where he was mentioned.

@@ -228,0 +232,0 @@ #### MarkdownV2 style

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

@@ -5,0 +5,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