8000 GitHub - MuratOfficial/tel-bot-web-app: A lightweight React-based Telegram Web App (Mini App) integrated with a Telegram bot, built for testing and experimentation.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A lightweight React-based Telegram Web App (Mini App) integrated with a Telegram bot, built for testing and experimentation.

Notifications You must be signed in to change notification settings

MuratOfficial/tel-bot-web-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 Telegram Web App (Mini App)

A lightweight React-based Telegram Web App (Mini App) integrated with a Telegram bot, built for testing and experimentation.


📌 About

This project is a Telegram Web App (Mini App) developed using React. It serves as a frontend interface that can be launched within the Telegram client via a bot. The app is designed for testing and learning purposes, demonstrating how to integrate a React application as a Telegram Web App.


🧰 Tech Stack

  • Frontend: React (Create React App)
  • Deployment: Netlify
  • Telegram Integration: Telegram Web Apps API

⚙️ Features

  • ✅ React-based single-page application
  • ✅ Integration with Telegram Web Apps API
  • ✅ Hosted on Netlify for easy deployment
  • 🧪 Designed for testing and experimentation

📦 Getting Started

Prerequisites

  • Node.js and npm installed
  • A Telegram bot token obtained from BotFather

Installation

  1. Clone the repository:

      git clone https://github.com/MuratOfficial/tel-bot-web-app.git
      cd tel-bot-web-app
  2. Install dependencies:

npm install
  1. Start the development server:
npm start

The app will be available at http://localhost:3000


🚀 Deployment

The app is configured for deployment on Netlify. To deploy:

  1. Build the app:
npm run build
  1. Deploy the build directory to Netlify:
  • Log in to Netlify and create a new site.
  • Connect your GitHub repository or upload the build folder manually.
  • Set the build command to npm run build and the publish directory to build.
  1. Configure your Telegram bot:
  • Use BotFather to set the Web App URL to your deployed Netlify site.
  • Ensure the domain is served over HTTPS.

📁 Project Structure

tel-bot-web-app/
├── netlify/
│   └── functions/        # Netlify serverless functions (if any)
├── public/               # Public assets
├── src/                  # React source code
├── .gitignore
├── netlify.toml          # Netlify configuration
├── package.json
└── README.md

📌 Notes

The app includes the Telegram Web Apps JavaScript SDK via:

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

Ensure that your Telegram bot is properly configured to launch the Web App.

🤝 Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or suggestions.

📄 License

This project is licensed under the MIT License. See the LICENSE file for details.

Made with 💡 by MuratOfficial

About

A lightweight React-based Telegram Web App (Mini App) integrated with a Telegram bot, built for testing and experimentation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0