Skip to content

Commit

Permalink
also handle EditedMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
TiraelSedai committed Dec 9, 2024
1 parent c21cb9f commit 76e341d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ClubDoorman/Worker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private async Task<int> UpdateLoop(int offset, CancellationToken stoppingToken)
offset,
limit: 100,
timeout: 100,
allowedUpdates: [UpdateType.Message, UpdateType.ChatMember, UpdateType.CallbackQuery],
allowedUpdates: [UpdateType.Message, UpdateType.EditedMessage, UpdateType.ChatMember, UpdateType.CallbackQuery],
cancellationToken: stoppingToken
);
if (updates.Length == 0)
Expand Down Expand Up @@ -135,7 +135,7 @@ private async Task HandleUpdate(Update update, CancellationToken stoppingToken)
return;
}

var message = update.Message;
var message = update.EditedMessage ?? update.Message;
if (message == null)
return;
var chat = message.Chat;
Expand Down

0 comments on commit 76e341d

Please sign in to comment.