mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
Put mesage text to lower case when matching animations.
This commit is contained in:
@@ -53,7 +53,7 @@ namespace West.Entertainment.Handler.Fun
|
|||||||
var lastUseOption = await GetLastUseOption();
|
var lastUseOption = await GetLastUseOption();
|
||||||
|
|
||||||
if (animationFileId.IsNullOrEmpty()
|
if (animationFileId.IsNullOrEmpty()
|
||||||
|| !AnimationMatch.IsMatch(Message!.Text!)
|
|| !AnimationMatch.IsMatch(Message!.Text!.ToLower())
|
||||||
|| !CanHandle()
|
|| !CanHandle()
|
||||||
|| lastUseOption.GetValue<DateTime>() > DateTime.Now) return false;
|
|| lastUseOption.GetValue<DateTime>() > DateTime.Now) return false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user