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

grammy

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grammy - npm Package Compare versions

Comparing version 1.15.3 to 1.16.0

25

out/convenience/keyboard.d.ts

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

import { type InlineKeyboardButton, type KeyboardButton, type KeyboardButtonRequestChat, type KeyboardButtonRequestUser, type LoginUrl } from "../types.js";
import { type InlineKeyboardButton, type KeyboardButton, type KeyboardButtonRequestChat, type KeyboardButtonRequestUser, type LoginUrl, type SwitchInlineQueryChosenChat } from "../types.js";
/**

@@ -318,5 +318,6 @@ * Use this class to simplify building a custom keyboard (something like this:

/**
* Adds a new inline query button that act on the current chat. The selected
* chat will be prefilled with the name of your bot. You may provide a text
* that is specified along with it. This will start an inline query.
* Adds a new inline query button that acts on the current chat. The
* selected chat will be prefilled with the name of your bot. You may
* provide a text that is specified along with it. This will start an inline
* query.
*

@@ -334,2 +335,18 @@ * Your bot will in turn receive updates for inline queries. You can listen

/**
* Adds a new inline query button. Telegram clients will let the user pick a
* chat when this button is pressed. This will start an inline query. The
* selected chat will be prefilled with the name of your bot. You may
* provide a text that is specified along with it.
*
* Your bot will in turn receive updates for inline queries. You can listen
* to inline query updates like this:
* ```ts
* bot.on('inline_query', ctx => { ... })
* ```
*
* @param text The text to display
* @param query The query object describing which chats can be picked
*/
switchInlineChosen(text: string, query?: SwitchInlineQueryChosenChat): this;
/**
* Adds a new game query button, confer

@@ -336,0 +353,0 @@ * https://core.telegram.org/bots/api#games

@@ -367,5 +367,6 @@ "use strict";

/**
* Adds a new inline query button that act on the current chat. The selected
* chat will be prefilled with the name of your bot. You may provide a text
* that is specified along with it. This will start an inline query.
* Adds a new inline query button that acts on the current chat. The
* selected chat will be prefilled with the name of your bot. You may
* provide a text that is specified along with it. This will start an inline
* query.
*

@@ -385,2 +386,20 @@ * Your bot will in turn receive updates for inline queries. You can listen

/**
* Adds a new inline query button. Telegram clients will let the user pick a
* chat when this button is pressed. This will start an inline query. The
* selected chat will be prefilled with the name of your bot. You may
* provide a text that is specified along with it.
*
* Your bot will in turn receive updates for inline queries. You can listen
* to inline query updates like this:
* ```ts
* bot.on('inline_query', ctx => { ... })
* ```
*
* @param text The text to display
* @param query The query object describing which chats can be picked
*/
switchInlineChosen(text, query = {}) {
return this.add({ text, switch_inline_query_chosen_chat: query });
}
/**
* Adds a new game query button, confer

@@ -387,0 +406,0 @@ * https://core.telegram.org/bots/api#games

8

package.json
{
"name": "grammy",
"description": "The Telegram Bot Framework.",
"version": "1.15.3",
"version": "1.16.0",
"author": "KnorpelSenf",

@@ -21,3 +21,3 @@ "license": "MIT",

"dependencies": {
"@grammyjs/types": "3.0.3",
"@grammyjs/types": "3.1.1",
"abort-controller": "^3.0.0",

@@ -30,5 +30,5 @@ "debug": "^4.3.4",

"@types/node": "^12.20.55",
"@types/node-fetch": "^2.6.2",
"@types/node-fetch": "2.6.2",
"all-contributors-cli": "^6.24.0",
"deno2node": "^1.7.2"
"deno2node": "^1.8.1"
},

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

@@ -13,3 +13,3 @@ <div align="center"><a href="https://grammy.dev"><img src="https://raw.githubusercontent.com/grammyjs/website/main/logos/grammY.png" alt="grammY"></a></h1></div>

[![Bot API](https://img.shields.io/badge/Bot%20API-6.6-blue?logo=telegram&style=flat&labelColor=000&color=3b82f6)](https://core.telegram.org/bots/api)
[![Bot API](https://img.shields.io/badge/Bot%20API-6.7-blue?logo=telegram&style=flat&labelColor=000&color=3b82f6)](https://core.telegram.org/bots/api)
[![Deno](https://shield.deno.dev/x/grammy)](https://deno.land/x/grammy)

@@ -269,3 +269,8 @@ [![npm](https://img.shields.io/npm/v/grammy?logo=npm&style=flat&labelColor=000&color=3b82f6)](https://www.npmjs.org/package/grammy)

<td align="center" valign="top" width="14.28%"><a href="https://github.com/mrmaster009"><img src="https://avatars.githubusercontent.com/u/81420490?v=4?s=100" width="100px;" alt="mrmaster009"/><br /><sub><b>mrmaster009</b></sub></a><br /><a href="https://github.com/grammyjs/grammY/commits?author=mrmaster009" title="Documentation">πŸ“–</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://lwjerri.dev/"><img src="https://avatars.githubusercontent.com/u/50290430?v=4?s=100" width="100px;" alt="Andrey Zontov"/><br /><sub><b>Andrey Zontov</b></sub></a><br /><a href="https://github.com/grammyjs/grammY/issues?q=author%3ALWJerri" title="Bug reports">πŸ›</a> <a href="https://github.com/grammyjs/grammY/commits?author=LWJerri" title="Code">πŸ’»</a> <a href="#question-LWJerri" title="Answering Questions">πŸ’¬</a> <a href="#ideas-LWJerri" title="Ideas, Planning, & Feedback">πŸ€”</a></td>
</tr>
<tr>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/AbbassAlmusawi"><img src="https://avatars.githubusercontent.com/u/73327881?v=4?s=100" width="100px;" alt="Abbass Al-Musawi"/><br /><sub><b>Abbass Al-Musawi</b></sub></a><br /><a href="https://github.com/grammyjs/grammY/commits?author=AbbassAlmusawi" title="Documentation">πŸ“–</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/inji-gg"><img src="https://avatars.githubusercontent.com/u/5071242?v=4?s=100" width="100px;" alt="ArunR"/><br /><sub><b>ArunR</b></sub></a><br /><a href="https://github.com/grammyjs/grammY/issues?q=author%3Ainji-gg" title="Bug reports">πŸ›</a></td>
</tr>
</tbody>

@@ -272,0 +277,0 @@ </table>

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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