Allows communication between your bot and the Web App built in Flutter displayed inside Telegram

tele_web_app

It enables communication between your bot and the Flutter-embedded Web App displayed inside Telegram by making use of interoperability between Dart and JavaScript.

??This package is still under development, it is not recommended to use it in a production environment.

The package should only be used on the Web platform. This package makes use of the interoperability between Dart and JavaScript

Install

  1. Add the following lines to your project dependencies

    tele_web_app:
        git: https://github.com/yeikel16/tele_web_app.git
  2. Add to the index.html located in the web folder and put the telegram-web-app.js script in the <head> tag before any other scripts, using this code:

    <script src="https://telegram.org/js/telegram-web-app.js"></script>

GitHub

View Github