File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,10 @@ export type PopupButton = {
116116 }
117117) ;
118118
119+ export type ScanQrPopupParams = {
120+ text ?: string ;
121+ } ;
122+
119123export type Platforms =
120124 | "android"
121125 | "android_x"
@@ -175,6 +179,12 @@ export interface WebApp {
175179 showAlert : ( message : string , callback ?: ( ) => unknown ) => void ;
176180 enableClosingConfirmation : VoidFunction ;
177181 disableClosingConfirmation : VoidFunction ;
182+ showScanQrPopup : (
183+ params : ScanQrPopupParams ,
184+ callback ?: ( text : string ) => void | true
185+ ) => void ;
186+ closeScanQrPopup : ( ) => void ;
187+ readTextFromClipboard : ( callback ?: ( text : string ) => unknown ) => void ;
178188 ready : VoidFunction ;
179189}
180190
Original file line number Diff line number Diff line change 11{
22 "name" : " @twa-dev/types" ,
3- "version" : " 6.2.4 " ,
3+ "version" : " 6.4.0 " ,
44 "main" : " index.js" ,
55 "description" : " Types for Telegram Web Apps (TWA) SDK" ,
66 "keywords" : [
You can’t perform that action at this time.
0 commit comments