Examples: How to recieve payments in a Telegram bot
Hiyorimi opened this issue · comments
Summary
Example article and supplementary code for launching a telegram bot capable of accepting payments in TON.
Context
Bots are great for providing use cases for TON and we want to encourage people to build more of them. That's why we need a clear tutorial showing how to start accepting payments in TON.
Goals
- Provide a deployable example of Telegram bot capable of accepting payments through TON.
- Make sure code is covered with comments and sufficient documentation is provided for junior developers to handle bot deploy and code reusage.
- Provide clear instructions on how to switch between mainnet and testnet.
Deliverables
- repository with bot code and documentation
- instructions on how to set up and test bot locally
Definition of Done
[ ] Bot can be run from the code provided in the repository
[ ] Bot accepts payments on testnet
[ ] Bot accepts payments on mainnet
Reward
- Standard TON Footstep NFT
- 777 Toncoin
Total: $1100
I will try to make a python bot by the end of the month
bot is ready (i think)
https://t.me/TONfootstep8_bot (It is currently deployed on heroku but uses a local sqlite database so data loss is possible, I will mention this in the article.)
I will prepare the repository during the day
https://github.com/LevZed/ton-footstep-8
I still need to fix code comments and write an article
I'll do it soon
@Hiyorimi Is it required to write a full article, or is it enough to write only instructions on installation, configuration and running?
I believe that the task was completed. My repository meets all "Definition of Done" criteria:
- Bot can be run from the code provided in the repository
- Bot accepts payments on testnet
- Bot accepts payments on mainnet
Articles with explanations to the code were also written.
https://github.com/LevZed/ton-payments-in-telegram-bot
Waiting for confirmation from @Hiyorimi
@Gusarich, I guess I finished the bot and the article, you are mostly welcome to improve it. And I think you could make a node.js bot example. The community will benefit from two options.
I wonder how the user/users who performed TON Footstep will be determined?
Will it be the first user who met the criteria, or the user with the best result, or something else?
I already finished the bot's code with comments and instructoins on how to set up and run it. Now I need to write the article.
But is there any sense for me to write it? Or LevZed will get the reward?
The bot example is already ready, it's in my repository https://github.com/Gusarich/ton-bot-example
I'm just wondering if it's worth writing an article?
I wonder how the user/users who performed TON Footstep will be determined? Will it be the first user who met the criteria, or the user with the best result, or something else?
I already finished the bot's code with comments and instructoins on how to set up and run it. Now I need to write the article. But is there any sense for me to write it? Or LevZed will get the reward? The bot example is already ready, it's in my repository https://github.com/Gusarich/ton-bot-example I'm just wondering if it's worth writing an article?
That's a good question, I guess we need to address it and improve the process in general.
As of the question of writing an article, I need couple of days to clear things up and to get back to you with an answer.
I wonder how the user/users who performed TON Footstep will be determined? Will it be the first user who met the criteria, or the user with the best result, or something else?
I already finished the bot's code with comments and instructoins on how to set up and run it. Now I need to write the article. But is there any sense for me to write it? Or LevZed will get the reward? The bot example is already ready, it's in my repository https://github.com/Gusarich/ton-bot-example I'm just wondering if it's worth writing an article?That's a good question, I guess we need to address it and improve the process in general.
As of the question of writing an article, I need couple of days to clear things up and to get back to you with an answer.
So what do you think?
Good day, @Hiyorimi
As far as I understand, the reward will be divided between me and @Gusarich, what are our next steps? Open PR?
Yeah, I checked @LevZed solution and introduced some minor amendments to it. And added similar amendments to your solution.
Great work!
Will get back to this issue once if have checked exact details we need to proceed with the NFT.