This project demonstrates how to integrate Telegram Stars — Telegram's new in-app currency — to monetize your bot by accepting payments for digital goods and services. Built with Dart and the Televerse library, this codebase provides a step-by-step guide to implementing in-app purchases, interacting with Telegram’s Bot API, and processing Stars for a seamless user experience. Perfect for Telegram bot developers and Dart enthusiasts!
- Monetization with Telegram Stars: Allows users to make in-app purchases using Stars.
- Televerse Integration: Uses Televerse to communicate with Telegram’s Bot API.
- Dart Implementation: Written entirely in Dart, making it efficient and developer-friendly.
-
Clone the Repo
git clone https://github.com/eiirn/TelegramStarsMonetization.git cd yourrepository
-
Set Up Environment Variable:
Set yourBOT_TOKEN
in your environment variables.export BOT_TOKEN=your-telegram-bot-token
-
Run the Project
dart run
- Dart SDK >= 3.0.0
- Telegram Bot with an active
BOT_TOKEN
- Televerse Package for handling Bot API interactions
This project is licensed under the MIT License - see the LICENSE file for details.