alexgubanow / apteka063

tg bot for local pharmacy service
MIT License
0 stars 0 forks source link

at some point incoming message is from bot itself, with no locale info #15

Closed alexgubanow closed 2 years ago

alexgubanow commented 2 years ago

as segfault plug i used ??"ru"

    Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo(message.From.LanguageCode??"ru");

but this does not solve problem expected solution - add user locale column to Users table and use it as place to check for locale, while on each bot restart/incoming message we will update locale value