Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kubk/telegram-stars-example
A ready-to-run example how to integrate Telegram Stars into your bot
https://github.com/kubk/telegram-stars-example
bot telegram telegram-stars
Last synced: 2 days ago
JSON representation
A ready-to-run example how to integrate Telegram Stars into your bot
- Host: GitHub
- URL: https://github.com/kubk/telegram-stars-example
- Owner: kubk
- Created: 2024-07-03T04:03:44.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-01-15T13:12:12.000Z (about 1 month ago)
- Last Synced: 2025-02-03T10:45:58.964Z (17 days ago)
- Topics: bot, telegram, telegram-stars
- Language: JavaScript
- Homepage: https://teletype.in/@alteregor/how-to-integrate-telegram-stars
- Size: 6.84 KB
- Stars: 39
- Watchers: 1
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Telegram Stars GitHub Example
A detailed article: https://teletype.in/@alteregor/how-to-integrate-telegram-stars
### How to run
- Install dependencies via `npm i`
- Copy the configuration file via `cp .env.example .env` and edit the bot token
- Run the bot via `npm run start`### How to use
- Type `/pay` to pay with 1 star (~$0.02)
- Type `/status` to see if you paid or not
- Type `/refund` to refund the previous payment and get stars back to you account### Technology stack
While the code is written in Node.js and grammY framework, you can apply the general idea for accepting Stars payments to any language and framework.