New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@grammyjs/hydrate

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@grammyjs/hydrate - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

out/data/chat-join-request.d.ts

8

out/data/callback-query.d.ts

@@ -1,5 +0,5 @@

import { CallbackQuery, RawApi } from "../deps.node.js";
import { Other, Ret } from "../plugin.js";
import { InlineMessageXFragment } from "./inline-message.js";
import { MessageX } from "./message.js";
import { type CallbackQuery, type RawApi } from "../deps.node.js";
import { type Other, type Ret } from "../plugin.js";
import { type InlineMessageXFragment } from "./inline-message.js";
import { type MessageX } from "./message.js";
interface CallbackQueryXFragment {

@@ -6,0 +6,0 @@ message?: MessageX;

@@ -1,4 +0,4 @@

import { ChosenInlineResult, RawApi } from "../deps.node.js";
import { InlineMessageXFragment } from "./inline-message.js";
import { type ChosenInlineResult, type RawApi } from "../deps.node.js";
import { type InlineMessageXFragment } from "./inline-message.js";
export declare type ChosenInlineResultX = Partial<InlineMessageXFragment> & ChosenInlineResult;
export declare function installChosenInlineResultMethods(api: RawApi, chosenInlineResult: ChosenInlineResult): void;

@@ -1,2 +0,2 @@

import { InlineKeyboardMarkup, InputFile, InputFileProxy, RawApi, SentWebAppMessage } from "../deps.node.js";
import { type InlineKeyboardMarkup, type InputFile, type InputFileProxy, type RawApi, type SentWebAppMessage } from "../deps.node.js";
import { Other as O, Ret } from "../plugin.js";

@@ -3,0 +3,0 @@ declare type Other<M extends keyof RawApi, K extends string = never> = O<M, K | "chat_id" | "message_id">;

@@ -1,3 +0,3 @@

import { InlineQuery, InlineQueryResult, RawApi } from "../deps.node.js";
import { Other, Ret } from "../plugin.js";
import { type InlineQuery, type InlineQueryResult, type RawApi } from "../deps.node.js";
import { type Other, type Ret } from "../plugin.js";
interface InlineQueryXFragment {

@@ -4,0 +4,0 @@ /**

@@ -1,4 +0,4 @@

import { Message, RawApi } from "../deps.node.js";
import { InlineMessageXFragment } from "./inline-message.js";
import { Other as O, Ret } from "../plugin.js";
import { type Message, type RawApi } from "../deps.node.js";
import { type InlineMessageXFragment } from "./inline-message.js";
import { type Other as O, type Ret } from "../plugin.js";
declare type Other<M extends keyof RawApi, K extends string = never> = O<M, K | "chat_id" | "message_id">;

@@ -17,3 +17,3 @@ interface MessageXFragment extends InlineMessageXFragment {

/**
* Message-aware alias for `api.copyMessage`. Use this method to copy messages of any kind. Service messages and invoice messages can't be copied. The method is analogous to the method forwardMessage, but the copied message doesn't have a link to the original message. Returns the MessageId of the sent message on success.
* Message-aware alias for `api.copyMessage`. Use this method to copy messages of any kind. Service messages and invoice messages can't be copied. A quiz poll can be copied only if the value of the field correct_option_id is known to the bot. The method is analogous to the method forwardMessage, but the copied message doesn't have a link to the original message. Returns the MessageId of the sent message on success.
*

@@ -43,2 +43,10 @@ * @param chat_id Unique identifier for the target chat or username of the target channel (in the format @channelusername)

delete(signal?: AbortSignal): Ret<"deleteMessage">;
/**
* Message-aware alias for `api.getCustomEmojiStickers`. Use this method to get information about emoji stickers by their identifiers. Returns an Array of Sticker on success.
*
* @param signal Optional `AbortSignal` to cancel the request
*
* **Official reference:** https://core.telegram.org/bots/api#getcustomemojistickers
*/
getCustomEmojiStickers(signal?: AbortSignal): Ret<"getCustomEmojiStickers">;
}

@@ -45,0 +53,0 @@ export declare type MessageX = MessageXFragment & Message;

@@ -57,2 +57,12 @@ "use strict";

}, signal),
getCustomEmojiStickers: async (signal) => {
var _a;
const entities = (_a = message.entities) !== null && _a !== void 0 ? _a : message.caption_entities;
if (entities === undefined || entities.length === 0)
return [];
const identifiers = entities
.filter((e) => e.type === "custom_emoji")
.map((e) => e.custom_emoji_id);
return await api.getCustomEmojiStickers({ custom_emoji_ids: identifiers }, signal);
},
};

@@ -59,0 +69,0 @@ Object.assign(message, methods);

@@ -1,3 +0,3 @@

import { PreCheckoutQuery, RawApi } from "../deps.node.js";
import { Other, Ret } from "../plugin.js";
import { type PreCheckoutQuery, type RawApi } from "../deps.node.js";
import { type Other, type Ret } from "../plugin.js";
interface PreCheckoutQueryXFragment {

@@ -4,0 +4,0 @@ /**

@@ -1,3 +0,3 @@

import { RawApi, ShippingQuery } from "../deps.node.js";
import { Other, Ret } from "../plugin.js";
import { type RawApi, type ShippingQuery } from "../deps.node.js";
import { type Other, type Ret } from "../plugin.js";
interface ShippingQueryXFragment {

@@ -7,3 +7,3 @@ /**

*
* @param ok Specify True if delivery to the specified address is possible and False if there are any problems (for example, if delivery to the specified address is not possible)
* @param ok Pass True if delivery to the specified address is possible and False if there are any problems (for example, if delivery to the specified address is not possible)
* @param other Optional remaining parameters, confer the official reference below

@@ -10,0 +10,0 @@ * @param signal Optional `AbortSignal` to cancel the request

@@ -1,8 +0,9 @@

import { RawApi, Update } from "../deps.node.js";
import { CallbackQueryX } from "./callback-query.js";
import { InlineQueryX } from "./inline-query.js";
import { PreCheckoutQueryX } from "./pre-checkout-query.js";
import { ShippingQueryX } from "./shipping-query.js";
import { MessageX } from "./message.js";
import { ChosenInlineResultX } from "./chosen-inline-result.js";
import { type RawApi, type Update } from "../deps.node.js";
import { type CallbackQueryX } from "./callback-query.js";
import { type InlineQueryX } from "./inline-query.js";
import { type PreCheckoutQueryX } from "./pre-checkout-query.js";
import { type ShippingQueryX } from "./shipping-query.js";
import { type MessageX } from "./message.js";
import { type ChosenInlineResultX } from "./chosen-inline-result.js";
import { type ChatJoinRequestX } from "./chat-join-request.js";
export interface UpdateX extends Update {

@@ -18,3 +19,4 @@ message: MessageX | undefined;

chosen_inline_result: ChosenInlineResultX | undefined;
chat_join_request: ChatJoinRequestX | undefined;
}
export declare function installUpdateMethods(api: RawApi, update: Update): void;

@@ -10,2 +10,3 @@ "use strict";

const chosen_inline_result_js_1 = require("./chosen-inline-result.js");
const chat_join_request_js_1 = require("./chat-join-request.js");
function installUpdateMethods(api, update) {

@@ -39,3 +40,6 @@ if (update.message !== undefined) {

}
else if (update.chat_join_request !== undefined) {
(0, chat_join_request_js_1.installChatJoinRequestMethods)(api, update.chat_join_request);
}
}
exports.installUpdateMethods = installUpdateMethods;

@@ -1,8 +0,9 @@

import { Api, Context, InputFile, InputFileProxy, RawApi, Transformer } from "./deps.node.js";
import { UpdateX } from "./data/update.js";
import { MessageX } from "./data/message.js";
import { CallbackQueryX } from "./data/callback-query.js";
import { InlineQueryX } from "./data/inline-query.js";
import { ShippingQueryX } from "./data/shipping-query.js";
import { PreCheckoutQueryX } from "./data/pre-checkout-query.js";
import { type Api, type Context, type InputFile, type InputFileProxy, type RawApi, type Transformer } from "./deps.node.js";
import { type UpdateX } from "./data/update.js";
import { type MessageX } from "./data/message.js";
import { type CallbackQueryX } from "./data/callback-query.js";
import { type InlineQueryX } from "./data/inline-query.js";
import { type ShippingQueryX } from "./data/shipping-query.js";
import { type PreCheckoutQueryX } from "./data/pre-checkout-query.js";
import { type ChatJoinRequestX } from "./data/chat-join-request.js";
/**

@@ -103,2 +104,3 @@ * Transformative API Flavor that adds file handling utilities to the supplied

preCheckoutQuery: PreCheckoutQueryX | undefined;
chatJoinRequest: ChatJoinRequestX | undefined;
msg: MessageX | undefined;

@@ -105,0 +107,0 @@ }

{
"name": "@grammyjs/hydrate",
"description": "Hydration plugin for grammY",
"version": "1.1.1",
"version": "1.2.0",
"author": "KnorpelSenf",

@@ -30,5 +30,5 @@ "license": "MIT",

"devDependencies": {
"@grammyjs/types": "^2.7.0",
"@types/node": "^17.0.24",
"deno2node": "1.3.0"
"@grammyjs/types": "^2.9.0",
"@types/node": "^12.20.55",
"deno2node": "1.4.0"
},

@@ -35,0 +35,0 @@ "files": [

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