You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| button_id |`string`|_Optional_. Identifier of the clicked button. In case, the popup was closed without clicking any button, this property will be omitted. |
| id |`string`| Identifier of the message ([PreparedInlineMessage](https://core.telegram.org/bots/api#preparedinlinemessage)) previously obtained via the Bot API method [savePreparedInlineMessage](https://core.telegram.org/bots/api#savepreparedinlinemessage). |
492
+
449
493
### `web_app_set_background_color`
450
494
451
495
Available since: **v6.1**
@@ -555,6 +599,55 @@ A method that opens the native story editor.
555
599
| widget_link.url |`string`| The URL to be included in the story. |
556
600
| widget_link.name |`string`|_Optional_. The name to be displayed for the widget link, 0-48 characters. |
| refresh_rate |`number`| The refresh rate in milliseconds, with acceptable values ranging from 20 to 1000. Note that `refresh_rate` may not be supported on all platforms, so the actual tracking frequency may differ from the specified value. |
| refresh_rate |`number`| The refresh rate in milliseconds, with acceptable values ranging from 20 to 1000. Note that `refresh_rate` may not be supported on all platforms, so the actual tracking frequency may differ from the specified value. |
621
+
| need_absolute |`boolean`|_Optional_. Pass true to receive absolute orientation data, allowing you to determine the device's attitude relative to magnetic north. Use this option if implementing features like a compass in your app. If relative data is sufficient, pass false. <br/><br/> Keep in mind that some devices may not support absolute orientation data. In such cases, you will receive relative data even if need_absolute=true is passed. |
| refresh_rate |`number`| The refresh rate in milliseconds, with acceptable values ranging from 20 to 1000. Note that `refresh_rate` may not be supported on all platforms, so the actual tracking frequency may differ from the specified value. |
632
+
633
+
### `web_app_stop_accelerometer`
634
+
635
+
Available since: **v8.0**
636
+
637
+
Stops tracking accelerometer data.
638
+
639
+
### `web_app_stop_device_orientation`
640
+
641
+
Available since: **v8.0**
642
+
643
+
Stops tracking device orientation data.
644
+
645
+
### `web_app_stop_gyroscope`
646
+
647
+
Available since: **v8.0**
648
+
649
+
Stops tracking gyroscope data.
650
+
558
651
### `web_app_setup_secondary_button`
559
652
560
653
Available since: **v7.10**
@@ -710,6 +803,18 @@ the specified inline query in the input field.
710
803
</tbody>
711
804
</table>
712
805
806
+
### `web_app_toggle_orientation_lock`
807
+
808
+
Available since: **v8.0**
809
+
810
+
Locks the Mini App’s orientation to its current mode (either portrait or landscape). Once locked,
811
+
the orientation remains fixed, regardless of device rotation. This is useful if a stable orientation
0 commit comments