From 5b1eb072ace30b1f7503fa4367a427f52219383e Mon Sep 17 00:00:00 2001 From: DmitryDavis Date: Tue, 2 Jun 2026 02:49:19 +0500 Subject: [PATCH 1/2] Add `requestChat` method to `WebApp` --- src/index.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/index.d.ts b/src/index.d.ts index 2361bd5..0d3d942 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -1066,6 +1066,15 @@ export declare namespace TelegramWebApps { * boolean indicating whether the user shared its phone number. */ requestContact(callback?: (phoneNumberShared: boolean) => void): void + /** + * `Bot API 9.6+` A method that opens a dialog allowing the user to select an + * existing chat or create a new one. If an optional *callback* parameter is provided, + * the *callback* function will be called with a boolean as the first argument, + * indicating whether the message was successfully sent. + * The request id passed to this method must belong to a PreparedKeyboardButton + * previously obtained via the Bot API method savePreparedKeyboardButton. + */ + requestChat(req_id: string, callback?: (messageSent: boolean) => void): void /** * A method that informs the Telegram app that the Web App is ready to be displayed. * From 6457f721f5dfe7097a8a102ae843ff49dbe5945f Mon Sep 17 00:00:00 2001 From: DmitryDavis Date: Tue, 2 Jun 2026 02:50:49 +0500 Subject: [PATCH 2/2] Bump version to 9.6 --- LICENSE | 2 +- README.md | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LICENSE b/LICENSE index 9f2edf3..045b033 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023-2024 Dmitry +Copyright (c) 2023-2026 Dmitry Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 19439bf..cf646f9 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ npm

-Telegram Bot API Version 9.5 +Telegram Bot API Version 9.6

CI Lint diff --git a/package.json b/package.json index 170725e..5522cfe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "telegram-webapps", - "version": "9.5.0", + "version": "9.6.0", "description": "Typings for Telegram Mini Apps", "keywords": [ "telegram",