Fixing on EditableMessage
This commit is contained in:
parent
a7411176e6
commit
e3d1652a02
@ -21,7 +21,7 @@ public class MessageResult : ResultBase
|
|||||||
{
|
{
|
||||||
IsAction = UpdateData.CallbackQuery != null;
|
IsAction = UpdateData.CallbackQuery != null;
|
||||||
|
|
||||||
IsBotCommand = UpdateData.Message.Entities.Any(a => a.Type == MessageEntityType.BotCommand);
|
IsBotCommand = Message.Entities?.Any(a => a.Type == MessageEntityType.BotCommand) ?? false;
|
||||||
|
|
||||||
if (!IsBotCommand)
|
if (!IsBotCommand)
|
||||||
return;
|
return;
|
||||||
@ -34,8 +34,6 @@ public class MessageResult : ResultBase
|
|||||||
{
|
{
|
||||||
BotCommand = BotCommand.Substring(0, BotCommand.LastIndexOf('@'));
|
BotCommand = BotCommand.Substring(0, BotCommand.LastIndexOf('@'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Update UpdateData { get; private set; }
|
public Update UpdateData { get; private set; }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user