Merge pull request #52 from contributeless/fix/get-device-id-from-edited-message

Fix: get chat id from edited message
This commit is contained in:
Florian Zevedei 2023-12-06 15:17:17 +01:00 committed by GitHub
commit 0cb4f02a8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;