hacettepeoyt / hu-announcement-bot

Get the latest from Hacettepe with this amazing Telegram Bot!
https://t.me/HacettepeDuyurucuBot
GNU General Public License v3.0
8 stars 6 forks source link

Unsupported language #23

Closed furkansimsekli closed 1 year ago

furkansimsekli commented 2 years ago

Problem

When a user uses an unsupported language, it breaks the bot. Default language must be defined at first instead of using user's telegram app language.

Old: language = user.language_code New: language = 'tr'

Notes

melikechan commented 2 years ago

I think that the new feature for admin interface can be implemented like the feedback system. When an error/warning occurs, bot sends message to admin(s). Edit: I took a look at logging.py, I think that when log levels "30, 40, 50" occurs, the log also can be sent to admin(s).