We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ac1d7b4 + 22fd20e commit 5aadeb9Copy full SHA for 5aadeb9
README.md
@@ -52,10 +52,27 @@ WebApp.setBackgroundColor('#f60000')
52
// to set the app header color
53
WebApp.setHeaderColor('bg_color');
54
55
-// Display a simple view
+// Display a swipe vertical by event
56
WebView.postEvent('web_app_setup_swipe_behavior', false, {
57
allow_vertical_swipe: false,
58
});
59
+
60
+// ready method must come last
61
+WebApp.ready();
62
+```
63
64
+## disableVerticalSwipes
65
66
+```ts
67
+import { WebApp, WebView } from 'telegram-sdk';
68
69
+// Config something...
70
+WebApp.expand(); // Expand app
71
+WebApp.disableClosingConfirmation();
72
+WebApp.disableVerticalSwipes(); // Disable Vertical Swiper
73
74
75
76
```
77
78
## Documentation
0 commit comments