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

https://github.com/sagleft/telebot-invoice-example

An example of making a payment using library tucnak/telebot: create, send and handle invoice
https://github.com/sagleft/telebot-invoice-example

bot invoice invoice-generator payment telebot telegram telegram-api

Last synced: 28 days ago
JSON representation

An example of making a payment using library tucnak/telebot: create, send and handle invoice

Awesome Lists containing this project

README

          

# telebot-invoice-example
An example of making a payment using library tucnak/telebot: create, send and handle invoice

## The meaning of the project

There is very little information and examples on making payments with libraries on Golang to Telegram, so I decided to make a comprehensive example showing how payment works, how an invoice is created and received.

This code consists of three parts:

1. Creating a bot that processes the `/start` command.
2. Creating an invoice and sending it to the user.
3. Processing payment and completing an action, as well as sending a notification to the user about successful payment.

---

## You might also be interested in:

[![automate crypto trading](https://github.com/Sagleft/Sagleft/blob/master/matrixbot_github_banner_1.png?raw=true)](https://t.me/get_matrixbot?start=github_org)

---

[![image](https://github.com/Sagleft/Sagleft/raw/master/sgl_banner_en.png)](https://t.me/+dVOFqtn-VQFjMmFi)