Fix for bots in groups adding/removing
This commit is contained in:
parent
1f1aa1f0ee
commit
eb8fad444b
@ -21,6 +21,9 @@ public class MessageResult : ResultBase
|
|||||||
{
|
{
|
||||||
IsAction = UpdateData.CallbackQuery != null;
|
IsAction = UpdateData.CallbackQuery != null;
|
||||||
|
|
||||||
|
if (Message == null)
|
||||||
|
return;
|
||||||
|
|
||||||
IsBotCommand = Message.Entities?.Any(a => a.Type == MessageEntityType.BotCommand) ?? false;
|
IsBotCommand = Message.Entities?.Any(a => a.Type == MessageEntityType.BotCommand) ?? false;
|
||||||
|
|
||||||
if (!IsBotCommand)
|
if (!IsBotCommand)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user