Steffo99 / greed

Customizable, multilanguage Telegram shop bot with Payments support
GNU Affero General Public License v3.0
523 stars 258 forks source link

Code quality improvements #178

Closed oleg20111511 closed 2 years ago

oleg20111511 commented 2 years ago

1) Removed raw calls to Telegram Bot API and replaced them with python-telegram-bot methods. This way if someone wants to use self-hosted API server it can be done by changing it in just one place on Bot instance initialization.

2) Fixed an issue when, while editing a product without a price, part of the string would not be localized

Steffo99 commented 2 years ago

Thanks for the PR!

I vaguely remember a reason for not using those methods there, I'll have to perform some tests when I'm back home!