-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: Telegram 8.0 support #553
Comments
This is really needed. Full Screen mode already implemented in #555 |
Waiting for requestEmojiStatusAccess method. |
Fullscreen implemented in |
how about "addToHomeScreen"? |
Would be nice to add listener on Mini App close |
Safe area insets and content safe area insets implemented in |
Emoji status-related functionality implemented in Add to home screen and Mini App activation functionality is on the way |
@heyqbnk could we get ![]() ![]() |
LocationManager would be nice to have too |
Active and inactive states implemented in Working at the add to home screen feature |
Add to home screen functionality implemented in Working at location manager |
Will location manager be added to the next release? |
Yes it will. Sorry, was at my vacation |
yea waiting for shareMessage and lockOrientation, thanks! |
Are there any news on shareMessage and lockOrientation feateures? |
While the development is in progress, you can use the share message and orientation lock features via import { postEvent } from '@telegram-apps/sdk';
postEvent('web_app_send_prepared_message', { id: 'message id' });
postEvent('web_app_toggle_orientation_lock', { locked: true }); |
Thanks for a great library! with latest 3.0.2 trying to trigger the |
By default, when calling the To prevent such a behavior you can specify the import { postEvent } from '@telegram-apps/bridge';
import { init } from '@telegram-apps/sdk;
init({ postEvent }); This will make the SDK use a standard, non-protected version of You can also mix a strict and non-strict versions to allow only specific methods, but apply checks for others. It should be something like that: import { postEvent, createPostEvent } from '@telegram-apps/bridge';
import { init, retrieveLaunchParams } from '@telegram-apps/sdk';
const launchParams = retrieveLaunchParams();
const postEventStrict = createPostEvent(launchParams.tgWebAppVersion);
init({
launchParams,
postEvent(...args) {
if (args[0] === 'web_app_toggle_orientation_lock') {
return postEvent(...args);
}
return postEventStrict(...args);
},
}); |
Ah fantastic thanks! Did not see that bridge postEvent option before |
All v8 methods and events have been added to @telegram-apps/bridge. Note that it doesn't mean that something appeared in @telegram-apps/sdk. It means that now you:
|
✅ typing for
✅ I imported |
|
The location is not requested from the user. In the mobile version I get:
In the desktop version I get:
How to correctly request permission to share a user's geolocation and receive data?
|
Is your feature request related to a problem? Please describe.
No response
Describe the solution you'd like
Yesterday telegram 8.0 has been released with a bunch of changes for WebApps. Would be nice to extend sdk with new classes, methods and events.
https://core.telegram.org/bots/webapps#november-17-2024
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: