UNIT.City — місце, де люди працюють... КРАЩЕ! Обирай свій простір просто зараз 👉
Наталя ХандусенкоHot News
18 November 2024, 12:42
2024-11-18
Telegram has introduced a major API update for Mini Apps that includes 10 new features
The updated version of Telegram Bot API 8.0 has received 10 new features for widgets, including the ability to enter full-screen mode, launch from home screen shortcuts, offer subscription plans, and more.
The updated version of Telegram Bot API 8.0 has received 10 new features for widgets, including the ability to enter full-screen mode, launch from home screen shortcuts, offer subscription plans, and more.
1. Star subscriptions
Bots now support paid subscriptions based on Telegram Stars, which can be monetized with multiple levels of content and features.
2. Full screen mode
Widgets can now be deployed in full-screen mode in both portrait and landscape modes, allowing for more games, large media playback, and a better user experience.
3. Homescreen Shortcuts
Widgets are now accessible via shortcuts added to the home screen of mobile devices.
4. Emoji Status
Widgets can now prompt users to set their emoji status or request access to automatically sync it later with in-game icons, third-party APIs, and more.
5. Media Sharing and File Downloads
Users can now share media directly from widgets by sending referral codes, custom memes, artwork, and more to any chat or posting as a story.
6. Geolocation Access
Widgets can now ask users for geolocation, allowing them to create virtually any location-based service, from games with dynamic landmarks to interactive maps for events.
7. Device movement tracking
Widgets can now track detailed device motion data, enabling better productivity tools, immersive VR experiences, and more.
8. Device Motion Tracking
Bots can now send paid gifts to users in exchange for Telegram Stars.
9. Gifts
Widgets can customize their loading screen by adding their own icon and specific colors for light and dark themes.
10. Loading Screen Customization
Android widgets can now receive basic information about the device’s hardware, allowing them to optimize the user experience based on the device’s capabilities.
In addition to these 10 new features, Bot API 8.0 has received general updates:
Added a photo_url field to the WebAppUser class for all bots, allowing widgets to access the user’s profile photo if privacy settings allow it.
Third parties (such as developers) that receive or process data on behalf of widgets can now validate widgets without knowing the app’s bot token.
Debugging options have been expanded to include full support for iOS devices. You can use these tools to find application-related issues with your widget.
Соціальні мережі та штучний інтелект формують глобальні наративи про війну в Україні. Як їх використовують українці та росіяни — аналітика від Foreign Policy
Напередодні вторгнення росії в Україну соціальні медіа слугували полем битви для держав і недержавних діячів, щоби поширювати конкуруючі наративи про війну та зображати поточний конфлікт у своїх власних інтересах. Видання Foreign Policy опублікувало великий аналітичний матеріал, як українці та росіяни використовують соціальні мережі, щоб давати інформацію про війну. Наводимо його адаптований переклад.
Цей короткий термін на слуху у всіх, хто стикався з розробкою. Але далеко не всі розуміють, що саме він означає та навіщо потрібний. Розробник Петро Газаров розповів про API простими словами у своєму блозі.