Fix for bots in groups adding/removing

This commit is contained in:
Florian Zevedei 2024-07-10 14:25:08 +02:00
parent 1f1aa1f0ee
commit eb8fad444b

View File

@ -21,6 +21,9 @@ public class MessageResult : ResultBase
{
IsAction = UpdateData.CallbackQuery != null;
if (Message == null)
return;
IsBotCommand = Message.Entities?.Any(a => a.Type == MessageEntityType.BotCommand) ?? false;
if (!IsBotCommand)