From 52d948af2a01c28a68f6c52262be030bb2f0a1ec Mon Sep 17 00:00:00 2001 From: Wizou <11647984+wiz0u@users.noreply.github.com> Date: Thu, 10 Jul 2025 01:49:25 +0200 Subject: [PATCH] Fix DateTime type of *_at fields --- .github/workflows/release.yml | 9 +++++++++ src/TL.Schema.cs | 14 +++++++------- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5d1519e..42fcb35 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -54,3 +54,12 @@ jobs: run: | git tag $VERSION git push --tags + - name: Deployment Notification + env: + JSON: | + { + "status": "success", "complete": true, "commitMessage": ${{ toJSON(github.event.head_commit.message) }}, + "message": "{ \"commitId\": \"${{ github.sha }}\", \"buildNumber\": \"${{ env.VERSION }}\", \"repoName\": \"${{ github.repository }}\"}" + } + run: | + curl -X POST -H "Content-Type: application/json" -d "$JSON" ${{ secrets.DEPLOYED_WEBHOOK }} diff --git a/src/TL.Schema.cs b/src/TL.Schema.cs index 367010b..da22aff 100644 --- a/src/TL.Schema.cs +++ b/src/TL.Schema.cs @@ -2970,14 +2970,14 @@ namespace TL { public Flags flags; public StarGiftBase gift; - [IfFlag(3)] public int can_export_at; + [IfFlag(3)] public DateTime can_export_at; [IfFlag(4)] public long transfer_stars; [IfFlag(6)] public Peer from_id; [IfFlag(7)] public Peer peer; [IfFlag(7)] public long saved_id; [IfFlag(8)] public long resale_stars; - [IfFlag(9)] public int can_transfer_at; - [IfFlag(10)] public int can_resell_at; + [IfFlag(9)] public DateTime can_transfer_at; + [IfFlag(10)] public DateTime can_resell_at; [Flags] public enum Flags : uint { @@ -19791,7 +19791,7 @@ namespace TL /// Total amount of earned Telegram Stars. public StarsAmountBase overall_revenue; /// Unixtime indicating when will withdrawal be available to the user. If not set, withdrawal can be started now. - [IfFlag(1)] public int next_withdrawal_at; + [IfFlag(1)] public DateTime next_withdrawal_at; [Flags] public enum Flags : uint { @@ -20518,10 +20518,10 @@ namespace TL [IfFlag(11)] public long saved_id; [IfFlag(4)] public long convert_stars; [IfFlag(6)] public long upgrade_stars; - [IfFlag(7)] public int can_export_at; + [IfFlag(7)] public DateTime can_export_at; [IfFlag(8)] public long transfer_stars; - [IfFlag(13)] public int can_transfer_at; - [IfFlag(14)] public int can_resell_at; + [IfFlag(13)] public DateTime can_transfer_at; + [IfFlag(14)] public DateTime can_resell_at; [Flags] public enum Flags : uint {