Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eiirn/telegramstarsmonetization
Example showcasing monetization of your Telegram Bot with Telegram Stars. ⭐️
https://github.com/eiirn/telegramstarsmonetization
dart monetization payment telegram-bot telegram-stars televerse
Last synced: 2 days ago
JSON representation
Example showcasing monetization of your Telegram Bot with Telegram Stars. ⭐️
- Host: GitHub
- URL: https://github.com/eiirn/telegramstarsmonetization
- Owner: eiirn
- License: apache-2.0
- Created: 2024-11-02T14:37:53.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-03T04:38:43.000Z (about 2 months ago)
- Last Synced: 2024-12-21T10:17:33.313Z (2 days ago)
- Topics: dart, monetization, payment, telegram-bot, telegram-stars, televerse
- Language: Dart
- Homepage: https://www.youtube.com/watch?v=B6gJRJxccDw
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Monetize Your Telegram Bot with Telegram Stars 🌟
[![Dart](https://img.shields.io/badge/Dart-0175C2?logo=dart&logoColor=white)](https://dart.dev)
[![Telegram](https://img.shields.io/badge/Telegram-Bot-blue?logo=telegram&logoColor=white)](https://core.telegram.org/bots)
[![License](https://img.shields.io/github/license/eiirn/TelegramStarsMonetization)](./LICENSE)
[![Watch the Video](https://img.shields.io/badge/Watch%20Video-Youtube-red?logo=youtube)](https://youtu.be/B6gJRJxccDw)[Watch the Video Tutorial](https://www.youtube.com/watch?v=B6gJRJxccDw) 🎥
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!
## 🚀 Key Features
- **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.## 📖 Get Started
1. **Clone the Repo**
```shell
git clone https://github.com/eiirn/TelegramStarsMonetization.git
cd yourrepository
```2. **Set Up Environment Variable**:
Set your `BOT_TOKEN` in your environment variables.
```shell
export BOT_TOKEN=your-telegram-bot-token
```3. **Run the Project**
```shell
dart run
```## 🔧 Requirements
- **Dart SDK** >= 3.0.0
- **Telegram Bot** with an active `BOT_TOKEN`
- **Televerse Package** for handling Bot API interactions## 📄 License
This project is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details.
---
### 🔗 Additional Resources
- **[Telegram Bot API Documentation](https://core.telegram.org/bots/api)**
- **[Dart Documentation](https://dart.dev)**
- **[Televerse Library](https://pub.dev/packages/televerse)**