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

telegram-webapps-types-new

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

telegram-webapps-types-new - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

67

dist/index.d.ts

@@ -469,2 +469,69 @@ export declare namespace TelegramWebApps {

interface BiometricManager {
/**
* Bot API 7.2+ Shows whether biometrics object is initialized.
*/
isInited: boolean;
/**
* Bot API 7.2+ Shows whether biometrics is available on the current device.
*/
isBiometricAvailable: boolean;
/**
* Bot API 7.2+ The type of biometrics currently available on the device.
*
* Can be one of these values:
* - finger, fingerprint-based biometrics,
* - face, face-based biometrics,
* - unknown, biometrics of an unknown type.
*/
biometricType: string;
/**
* Bot API 7.2+ Shows whether permission to use biometrics has been requested.
*/
isAccessRequested: boolean;
/**
* Bot API 7.2+ Shows whether permission to use biometrics has been granted.
*/
isAccessGranted: boolean;
/**
* Bot API 7.2+ Shows whether the token is saved in secure storage on the device.
*/
isBiometricTokenSaved: boolean;
/**
* Bot API 7.2+ A unique device identifier that can be used to match the token to the device.
*/
deviceId: string;
/**
* Bot API 7.2+ A method that initializes the BiometricManager object.
*
* It should be called before the object's first use.
* If an optional callback parameter was passed, the callback function will be called when the object is initialized.
*/
init(callback?: () => void): BiometricManager;
/**
* Bot API 7.2+ A method that requests permission to use biometrics according to the params argument of type [BiometricRequestAccessParams](https://core.telegram.org/bots/webapps#biometricrequestaccessparams).
*
* If an optional callback parameter was passed, the callback function will be called and the first argument will be a boolean indicating whether the user granted access.
*/
requestAccess(params: { reason?: string }, callback?: (granted: boolean) => void): BiometricManager;
/**
* Bot API 7.2+ A method that authenticates the user using biometrics according to the params argument of type [BiometricAuthenticateParams](https://core.telegram.org/bots/webapps#biometricauthenticateparams).
*
* If an optional callback parameter was passed, the callback function will be called and the first argument will be a boolean indicating whether the user authenticated successfully. If so, the second argument will be a biometric token.
*/
authenticate(params: { reason?: string }, callback?: (success: boolean, token?: string) => void): BiometricManager;
/**
* Bot API 7.2+ A method that updates the biometric token in secure storage on the device.
*
* To remove the token, pass an empty string. If an optional callback parameter was passed, the callback function will be called and the first argument will be a boolean indicating whether the token was updated.
*/
updateBiometricToken(token: string, callback?: (updated: boolean) => void): BiometricManager;
/**
* Bot API 7.2+ A method that opens the biometric access settings for bots. Useful when you need to request biometrics access to users who haven't granted it yet.
*
* *Note that this method can be called only in response to user interaction with the Mini App interface (e.g. a click inside the Mini App or on the main button)*
*/
openSettings(): BiometricManager;
}
interface SettingsButton {

@@ -471,0 +538,0 @@ /**

2

package.json
{
"name": "telegram-webapps-types-new",
"version": "1.1.1",
"version": "1.2.0",
"description": "TypeScript typings for Telegram Web Apps for Bots. See https://core.telegram.org/bots/webapps",

@@ -5,0 +5,0 @@ "scripts": {

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