Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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. ⭐️

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)**