# Telegram bot progress thread by @renzokuken

**URL:** <https://forum.grin.mw/t/telegram-bot-progress-thread-by-renzokuken/9882>\
**Category:** Development and Technical Discussion\
**Created:** [June 23, 2022, 9:14am UTC](https://forum.grin.mw/t/telegram-bot-progress-thread-by-renzokuken/9882 "2022-06-23T09:14:18Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![renzokuken](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/renzokuken/32/3563_2.png) [@renzokuken](https://forum.grin.mw/u/renzokuken)\
**Post date:** [June 23, 2022, 9:14am UTC](https://forum.grin.mw/t/telegram-bot-progress-thread-by-renzokuken/9882/1 "2022-06-23T09:14:18Z")

</div>

Dear all, thank you very much for the trust you put in [my bounty proposal to build a Telegram bot](https://forum.grin.mw/t/grin-bounty-suggestions/9866/2). I have already drafted [a document](https://forum.grin.mw/t/grin-bounty-suggestions/9866/6) with some technical description. The grant amount for this bounty [has been locked](https://forum.grin.mw/t/bounty-for-telegram-bot-locked/9876).

You will see all the progress updates in my responses in this thread.

---

<div class="post-metadata">

**Author:** ![renzokuken](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/renzokuken/32/3563_2.png) [@renzokuken](https://forum.grin.mw/u/renzokuken)\
**Post date:** [June 23, 2022, 9:58am UTC](https://forum.grin.mw/t/telegram-bot-progress-thread-by-renzokuken/9882/2 "2022-06-23T09:58:50Z")

</div>

Unfortunately at this moment it is not possible to log reactions to messages as explained [here](https://github.com/python-telegram-bot/python-telegram-bot/issues/2879#issuecomment-1022264587). I will rewrite the proposal in which instead of reaching configurable number of reactions to message to get withdrawal approved there will be a required number of responses to that message (for instance containing particular emoji etc).

---

<div class="post-metadata">

**Author:** ![renzokuken](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/renzokuken/32/3563_2.png) [@renzokuken](https://forum.grin.mw/u/renzokuken)\
**Post date:** [June 23, 2022, 4:20pm UTC](https://forum.grin.mw/t/telegram-bot-progress-thread-by-renzokuken/9882/3 "2022-06-23T16:20:41Z")

</div>

Updated proposal

> <https://gist.github.com/marekyggdrasil/a703743d2baf5414382b6a20c2a61873>

Change log:

1. Not using reactions, as they are not yet supported by the Telegram bot API.
2. As suggested by @oryhp in Keybase, it is better to perform the slatepack exchanges via DM.

---

<div class="post-metadata">

**Author:** ![renzokuken](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/renzokuken/32/3563_2.png) [@renzokuken](https://forum.grin.mw/u/renzokuken)\
**Post date:** [June 28, 2022, 7:37am UTC](https://forum.grin.mw/t/telegram-bot-progress-thread-by-renzokuken/9882/4 "2022-06-28T07:37:54Z")

</div>

> **[GitHub - grinventions/slateboy](https://github.com/grinventions/slateboy)**
>
> Contribute to grinventions/slateboy development by creating an account on GitHub.

1. Started a public repository where you can track the progress
2. Implemented a basic bot that does nothing, just to have a codebase to work with
3. Supports configuration (\*.yml for now, \*.toml in the future)
4. Supports internationalization
5. Supports state persistence using built-in Telegram bot tool based on Pickle
6. HIS NAME IS SLATEBOY!

Stay tuned ~~

---

<div class="post-metadata">

**Author:** ![Anynomous](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/anynomous/32/2928_2.png) [@Anynomous](https://forum.grin.mw/u/Anynomous)\
**Post date:** [June 28, 2022, 8:39am UTC](https://forum.grin.mw/t/telegram-bot-progress-thread-by-renzokuken/9882/5 "2022-06-28T08:39:56Z")

</div>

> [@renzokuken](#):
>
> HIS NAME IS SLATEBOY!

Cool, maybe some community members can make design suggestions for the avatar of Slateboy, would that be ok for you @renzokuken or do you want the ‘honor’ of giving Slateboy a face? 😀

---

<div class="post-metadata">

**Author:** ![renzokuken](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/renzokuken/32/3563_2.png) [@renzokuken](https://forum.grin.mw/u/renzokuken)\
**Post date:** [June 28, 2022, 8:42am UTC](https://forum.grin.mw/t/telegram-bot-progress-thread-by-renzokuken/9882/6 "2022-06-28T08:42:40Z")

</div>

Sure! Slateboy can have an official face! But keep in mind anyone who starts the bot process can pick own name and avatar.

Edit: I personally imagine Slateboy as someone who is a mixture of Slatepack and GameBoy 😛 perhaps that could inspire someone’s design…

---

<div class="post-metadata">

**Author:** ![Anynomous](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/anynomous/32/2928_2.png) [@Anynomous](https://forum.grin.mw/u/Anynomous)\
**Post date:** [June 28, 2022, 8:43am UTC](https://forum.grin.mw/t/telegram-bot-progress-thread-by-renzokuken/9882/7 "2022-06-28T08:43:53Z")

</div>

True, it is just for the fun to be honest 😛. Just like Grinvention, Community Council, Iron Belly, Grin++ have their own cool designs.

> [@renzokuken](#):
>
> Edit: I personally imagine Slateboy as someone who is a mixture of Slatepack and GameBoy 😛 perhaps that could inspire someone’s design…

Mmmm,… I like your way of thinking.

---

<div class="post-metadata">

**Author:** ![renzokuken](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/renzokuken/32/3563_2.png) [@renzokuken](https://forum.grin.mw/u/renzokuken)\
**Post date:** [June 28, 2022, 8:52am UTC](https://forum.grin.mw/t/telegram-bot-progress-thread-by-renzokuken/9882/8 "2022-06-28T08:52:34Z")

</div>

What if a slatepack had eyes and mouth…

---

<div class="post-metadata">

**Author:** ![Anynomous](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/anynomous/32/2928_2.png) [@Anynomous](https://forum.grin.mw/u/Anynomous)\
**Post date:** [June 28, 2022, 1:19pm UTC](https://forum.grin.mw/t/telegram-bot-progress-thread-by-renzokuken/9882/9 "2022-06-28T13:19:22Z")

</div>

A first concept of a gameboy, slatepack and delivery man inspired mascot.  
Still a bit much gameboy though. I Could also replace the body with an envelope/slatepack. Alternatively, a more blockish/pixelated design or minecraft like character could be fun .  
Still a lot of room for improvement on the concept

 ![Slateboy1.2](https://canada1.discourse-cdn.com/flex036/uploads/grin/original/2X/c/c194e8bbd4f3d8c7703ec9e03b1b9da9ecbda1c2.jpeg)

---

<div class="post-metadata">

**Author:** ![renzokuken](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/renzokuken/32/3563_2.png) [@renzokuken](https://forum.grin.mw/u/renzokuken)\
**Post date:** [June 28, 2022, 2:33pm UTC](https://forum.grin.mw/t/telegram-bot-progress-thread-by-renzokuken/9882/10 "2022-06-28T14:33:13Z")

</div>

Amazing! Maybe instead of GameBoy buttons and screen it could have BEGINSLATEPACK. above the face and ENDSLATEPACK. on the bottom of the body?

---

<div class="post-metadata">

**Author:** ![trab](https://avatars.discourse-cdn.com/v4/letter/t/f04885/32.png) [@trab](https://forum.grin.mw/u/trab)\
**Post date:** [June 28, 2022, 8:41pm UTC](https://forum.grin.mw/t/telegram-bot-progress-thread-by-renzokuken/9882/11 "2022-06-28T20:41:06Z")

</div>

> [@renzokuken](#):
>
> Maybe instead of GameBoy buttons and screen it could have BEGINSLATEPACK. above the face and ENDSLATEPACK. on the bottom of the body?

or have that slatepack sample text on the gameboy screen and then have like “send” and “sign” buttons instead of A and B?

---

<div class="post-metadata">

**Author:** ![Anynomous](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/anynomous/32/2928_2.png) [@Anynomous](https://forum.grin.mw/u/Anynomous)\
**Post date:** [June 29, 2022, 7:54am UTC](https://forum.grin.mw/t/telegram-bot-progress-thread-by-renzokuken/9882/12 "2022-06-29T07:54:24Z")

</div>

Actually, while we are at it, maybe Slateboy should show the contract flow  
Nice way to educate everyone

```
                                         Signature 1 Signature 2

```

```auto
| Send Contract => |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| <= Sign contract ✅ |         
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Sign and publish ✅ ✅ => |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The above but than more graphical, with all text and checks in large arrows representing the three steps.
```

---

<div class="post-metadata">

**Author:** ![renzokuken](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/renzokuken/32/3563_2.png) [@renzokuken](https://forum.grin.mw/u/renzokuken)\
**Post date:** [June 29, 2022, 7:55am UTC](https://forum.grin.mw/t/telegram-bot-progress-thread-by-renzokuken/9882/13 "2022-06-29T07:55:47Z")

</div>

> [@trab](#):
>
> or have that slatepack sample text on the gameboy screen and then have like “send” and “sign” buttons instead of A and B?

Nice idea! I like “send” and “sign”, another option could be “SRS” and “RSR” which are the two slatepack flows sender-receiver-sender and receiver-sender-receiver.

---

<div class="post-metadata">

**Author:** ![renzokuken](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/renzokuken/32/3563_2.png) [@renzokuken](https://forum.grin.mw/u/renzokuken)\
**Post date:** [June 29, 2022, 7:57am UTC](https://forum.grin.mw/t/telegram-bot-progress-thread-by-renzokuken/9882/14 "2022-06-29T07:57:16Z")

</div>

Good idea. The slatepacks would be exchanged via DMs but bot could update everyone in the public of the state of the flow in educational matter.

---

<div class="post-metadata">

**Author:** ![Anynomous](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/anynomous/32/2928_2.png) [@Anynomous](https://forum.grin.mw/u/Anynomous)\
**Post date:** [June 29, 2022, 9:43am UTC](https://forum.grin.mw/t/telegram-bot-progress-thread-by-renzokuken/9882/15 "2022-06-29T09:43:27Z")

</div>

Is the transaction flow below clear/useful? If so I can put it in the body, I will keep the screen/face, but make it smaller and put the Grin ツ as face.  
In the body I can put the transaction flow. Optionally, we can make three versions where Slateboy points to the phase of the transaction the user is in.  
For me this is the clearest way to visualize the transaction flow.

 ![Transaction_flow1](https://canada1.discourse-cdn.com/flex036/uploads/grin/original/2X/8/89bc955f350bf33b6b7727265e89df71d6d1890a.png)

---

<div class="post-metadata">

**Author:** ![renzokuken](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/renzokuken/32/3563_2.png) [@renzokuken](https://forum.grin.mw/u/renzokuken)\
**Post date:** [June 29, 2022, 9:50am UTC](https://forum.grin.mw/t/telegram-bot-progress-thread-by-renzokuken/9882/16 "2022-06-29T09:50:53Z")

</div>

I think this graphic is very useful to understand what is going on, but I would also include info what command has been called in the grin-wallet  
 → Send: Draft contract  
 ← Receive: Sign contract  
 → Finalize: Sign & broadcast  
what do you think?

---

<div class="post-metadata">

**Author:** ![Anynomous](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/anynomous/32/2928_2.png) [@Anynomous](https://forum.grin.mw/u/Anynomous)\
**Post date:** [June 29, 2022, 9:54am UTC](https://forum.grin.mw/t/telegram-bot-progress-thread-by-renzokuken/9882/17 "2022-06-29T09:54:11Z")

</div>

> [@renzokuken](#):
>
> I think this graphic is very useful to understand what is going on, but I would also include info what command has been called in the grin-wallet  
> → Send: Draft contract  
> ← Receive: Sign contract  
> → Finalize: Sign & broadcast  
> what do you think?

I agree, it might be useful to name the commands. Not sure if the commands are the same though for the transaction flow suggested by @oryhp. I did not have time to try it yet. But yes, using the names/commands should make it even more clear.

I see in [Oryphs](https://forum.grin.mw/t/grin-wallet-contract-prototype/9745) post the commands are

```auto
contract new 
contract sign
contract sign

```

Incorporating the above it would look like this:

 ![Transaction_flow2](https://canada1.discourse-cdn.com/flex036/uploads/grin/original/2X/b/bf7bd94b10bcbb6c2d4c063336722ca1be0c102e.png)

Also I would like to somewhere mention BEGINSLATEPACK. and ENDSLATEPACK, just not sure where yet. Maybe on the envelop Slateboy is holding.

---

<div class="post-metadata">

**Author:** ![Anynomous](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/anynomous/32/2928_2.png) [@Anynomous](https://forum.grin.mw/u/Anynomous)\
**Post date:** [June 29, 2022, 12:39pm UTC](https://forum.grin.mw/t/telegram-bot-progress-thread-by-renzokuken/9882/18 "2022-06-29T12:39:56Z")

</div>

> [@Anynomous](#):
>
> BEGINSLATEPACK. and ENDSLATEPACK,

First Concept of Slateboy with SSS (Send-Sign-Sign) contract flow.  
Feedback is always welcome.

 ![Slateboy1.5](https://canada1.discourse-cdn.com/flex036/uploads/grin/original/2X/b/b54f30628807eead08038725e01872c792719d48.png)

---

<div class="post-metadata">

**Author:** ![renzokuken](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/renzokuken/32/3563_2.png) [@renzokuken](https://forum.grin.mw/u/renzokuken)\
**Post date:** [June 29, 2022, 1:08pm UTC](https://forum.grin.mw/t/telegram-bot-progress-thread-by-renzokuken/9882/19 "2022-06-29T13:08:13Z")

</div>

Dude, this is amazing! 😍 I like it so much I am offering you 500ツ from my bounty for this initiative. Regardless if you decide to continue or not, feel free to drop me your slatepack address in DM or here in the forum up to your preference!

---

<div class="post-metadata">

**Author:** ![Anynomous](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/anynomous/32/2928_2.png) [@Anynomous](https://forum.grin.mw/u/Anynomous)\
**Post date:** [June 29, 2022, 1:27pm UTC](https://forum.grin.mw/t/telegram-bot-progress-thread-by-renzokuken/9882/20 "2022-06-29T13:27:59Z")

</div>

I never say no to free Grinnies 😃, I will DM you.  
I am still far away from my target of 86400 ツ (1 Grin day).  
Suggestions for improvement are welcome. I will make also three more designs where SLATEBOY points to which phase of the transaction the user is at.

[Next page](https://forum.grin.mw/t/telegram-bot-progress-thread-by-renzokuken/9882.md?page=2)
