Skip to content

kubk/telegram-stars-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A ready-to-run example how to integrate Telegram Stars into your bot

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published