
Mini Apps always receive data about the user's current color theme in real time, so you can adjust the appearance of your interfaces to match it. Added the events backButtonClicked, settingsButtonClicked, invoiceClosed.Added the fields chat, can_send_after to the class WebAppInitData.Added the method offClick to the class MainButton.Added the field secondary_bg_color to the class ThemeParams.Added the fields version, headerColor, backgroundColor, BackButton, HapticFeedback and the methods isVersionAtLeast, setHeaderColor, setBackgroundColor, openLink, openTelegramLink, openInvoice to the class WebApp.Added support for t.me links that can be used to select the chat in which the attachment menu with the bot will be opened.Added the ability to use bots added to the attachment menu in group, supergroup and channel chats.Added the field is_premium to the class WebAppUser.Added the field isClosingConfirmationEnabled and the methods enableClosingConfirmation, disableClosingConfirmation, showPopup, showAlert, showConfirm to the class WebApp.Added the events qrTextReceived, clipboardTextReceived.Added the field platform, the optional parameter options to the method openLink and the methods showScanQrPopup, closeScanQrPopup, readTextFromClipboard to the class WebApp.Added the method switchInlineQuery to the class WebApp.Added support for launching mini apps from inline query results and from a direct link.(Will be supported in Telegram client apps in a later release, expected in September 2023.) Added the ability to set any header color using the setHeaderColor method.Added the events writeAccessRequested, contactRequested.Added the fields added_to_attachment_menu, allows_write_to_pm to the class WebAppUser.

Added the field CloudStorage and the methods requestWriteAccess, requestContact to the class WebApp.To see a Mini App in action, try our sample changes September 14, 2023
