Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<a href="https://npmjs.com/package/telegram-webapps"><img alt="npm" src="https://img.shields.io/npm/dt/telegram-webapps"/></a>
</p>
<p align="center">
<a href="https://core.telegram.org/bots/webapps"><img alt="Telegram Bot API Version 9.5" src="https://img.shields.io/badge/Telegram%20Bot%20API-9.5-blue.svg?logo=telegram"/></a>
<a href="https://core.telegram.org/bots/webapps"><img alt="Telegram Bot API Version 9.6" src="https://img.shields.io/badge/Telegram%20Bot%20API-9.6-blue.svg?logo=telegram"/></a>
</p>
<p align="center">
<a href="https://github.com/DavisDmitry/telegram-webapps/actions/workflows/lint.yml"><img alt="CI Lint" src="https://github.com/DavisDmitry/telegram-webapps/actions/workflows/lint.yml/badge.svg"/></a>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "telegram-webapps",
"version": "9.5.0",
"version": "9.6.0",
"description": "Typings for Telegram Mini Apps",
"keywords": [
"telegram",
Expand Down
9 changes: 9 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
Loading