![]() For example, when users switch between Day and Night modes or use various custom themes. Web 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.License is available here.To see a Web App in action, try our sample changes August 12, 2022 The source code is licensed under GPL v3. A detailed list with descriptions and licenses is available here. Many thanks to all these libraries' authors and contributors. Third party librariesīesides the frameworks mentioned above, other libraries are used for protocol and UI needs. Don't forget to set X-Frame-Options SAMEORIGIN header ( docs). Copy dist folder contents to your web server. Run npm run clean ( gulp clean), then npm run build ( gulp publish) to build the minimized production version of the app. Run npm start ( gulp watch) to watch for file changes and automatically rebuild the app. Choose "Open packaged app" from the Project menu and select the app folder. To run this application in Firefox as a packaged app, open "Menu" -> "Developer" -> "WebIDE" (or hit Shift + F8). Select the downloaded app folder and Webogram should appear in the list. To run this application in Google Chrome as a packaged app, open this URL (in Chrome): chrome://extensions/, then tick "Developer mode" and press "Load unpacked extension.". Just run npm start ( gulp watch) to start the web server and the livereload task. This will install all the needed dependencies. The project repository is based on angularjs-seed and includes gulp tasks, so it's easy to launch the app locally on your desktop. jQuery is used for DOM manipulations, and Bootstrap as the CSS-framework. The app is based on the AngularJS JavaScript framework, and written in pure JavaScript. Please do not report bugs which are only reproducible in different locations. The package is updated less frequently than the Web-version.Īll of the apps above are submitted and maintained by so feel free to use them and report bugs here. Packed version: the app is downloaded at once in a package via HTTPS. Will be available offline due to application cache. Hosted version: the app is downloaded via HTTPS as a usual website. Online Web-version (hosted on GitHub pages) Online Web-version (hosted on Telegram servers) Here are some screenshots of the interface: That said, I'm using this app myself and I'd like to share its sources, so anyone can contribute to the development. MTProto data can be carried over HTTP (SSL is also supported), so this project is my take at creating one. I personally like Telegram for its speed and cloud-support (that makes a web app possible, unlike in the case of WA and others). It is based on the MTProto protocol and has an Open API. Telegram offers great apps for mobile communication. - Telegram Web Z, based on its own Teact framework (which re-implements React paradigm), uses a custom version of GramJS as an MTProto implementation.- Telegram Web K, based on source code of Webogram, rewritten in TypeScript.The project was superseeded by 2 new official Telegram Web Apps:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |