Fixing EditMessage behaviour
This commit is contained in:
parent
43f4ab1061
commit
f401216eff
@ -16,6 +16,7 @@ public class UpdateResult : ResultBase
|
||||
/// </summary>
|
||||
public override long DeviceId =>
|
||||
RawData?.Message?.Chat?.Id
|
||||
?? RawData?.EditedMessage?.Chat?.Id
|
||||
?? RawData?.CallbackQuery?.Message?.Chat?.Id
|
||||
?? Device?.DeviceId
|
||||
?? 0;
|
||||
|
||||
@ -72,6 +72,12 @@ public class FormBaseMessageLoop : IMessageLoopFactory
|
||||
}
|
||||
}
|
||||
|
||||
//Message edited ?
|
||||
if(update.Type == UpdateType.EditedMessage)
|
||||
{
|
||||
await activeForm.Edited(mr);
|
||||
}
|
||||
|
||||
//Action Event
|
||||
if (!session.FormSwitched && mr.IsAction)
|
||||
{
|
||||
|
||||
@ -65,6 +65,12 @@ public class FullMessageLoop : IMessageLoopFactory
|
||||
}
|
||||
}
|
||||
|
||||
//Message edited ?
|
||||
if (update.Type == UpdateType.EditedMessage)
|
||||
{
|
||||
await activeForm.Edited(mr);
|
||||
}
|
||||
|
||||
//Action Event
|
||||
if (!session.FormSwitched && mr.IsAction)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user