Skip to content

Commit eb8fad4

Browse files
committed
Fix for bots in groups adding/removing
1 parent 1f1aa1f commit eb8fad4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

TelegramBotBase/Base/MessageResult.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ void init()
2121
{
2222
IsAction = UpdateData.CallbackQuery != null;
2323

24+
if (Message == null)
25+
return;
26+
2427
IsBotCommand = Message.Entities?.Any(a => a.Type == MessageEntityType.BotCommand) ?? false;
2528

2629
if (!IsBotCommand)

0 commit comments

Comments
 (0)