Skip to content

Commit 5aadeb9

Browse files
committed
2 parents ac1d7b4 + 22fd20e commit 5aadeb9

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

+18-1
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,27 @@ WebApp.setBackgroundColor('#f60000')
5252
// to set the app header color
5353
WebApp.setHeaderColor('bg_color');
5454

55-
// Display a simple view
55+
// Display a swipe vertical by event
5656
WebView.postEvent('web_app_setup_swipe_behavior', false, {
5757
allow_vertical_swipe: false,
5858
});
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+
// ready method must come last
75+
WebApp.ready();
5976
```
6077

6178
## Documentation

0 commit comments

Comments
 (0)