y9san9 / prizebot

Open source telegram bot to purely raffle prizes (giveaways) with random.org written in Kotlin
https://t.me/y9prizebot
MIT License
76 stars 13 forks source link

Improve architecture #51

Closed y9san9 closed 3 years ago

y9san9 commented 3 years ago

For now I am abusing generics bounds, so this improvements should remove hierarchies in telegram module and remove a lot of bot updates wrappers. My point is that I should target on framework usage instead of writing my wrapper.

y9san9 commented 3 years ago

now it is not actual, may be later

y9san9 commented 3 years ago

Now it is very actual :) My code is not flexible to any changes, so I am going to remove my wrapper and use only telegram library

y9san9 commented 3 years ago

Actor is not actors known as entities for asynchronous code, so they should be renamed. Also better hierarchy of updates may be done. That leads to removing generics from functions uses updates and replacing them with common super type

y9san9 commented 3 years ago

After rename I should also fix its name in bot/README.md