// ReSharper disable All

namespace MyTelegram.Schema.Messages;

///<summary>
/// <a href="https://corefork.telegram.org/api/transcribe">Transcribed text</a> from a voice message
/// See <a href="https://corefork.telegram.org/constructor/messages.TranscribedAudio" />
///</summary>
[JsonDerivedType(typeof(TTranscribedAudio), nameof(TTranscribedAudio))]
public interface ITranscribedAudio : IObject
{
    ///<summary>
    /// Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a>
    ///</summary>
    int Flags { get; set; }

    ///<summary>
    /// Whether the transcription is partial because audio transcription is still in progress, if set the user may receive further <a href="https://corefork.telegram.org/constructor/updateTranscribedAudio">updateTranscribedAudio</a> updates with the updated transcription.
    ///</summary>
    bool Pending { get; set; }

    ///<summary>
    /// Transcription ID
    ///</summary>
    long TranscriptionId { get; set; }

    ///<summary>
    /// Transcripted text
    ///</summary>
    string Text { get; set; }

    ///<summary>
    /// For non-<a href="https://corefork.telegram.org/api/premium">Premium</a> users, this flag will be set, indicating the remaining transcriptions in the free trial period.
    ///</summary>
    int? TrialRemainsNum { get; set; }

    ///<summary>
    /// For non-<a href="https://corefork.telegram.org/api/premium">Premium</a> users, this flag will be set, indicating the date when the <code>trial_remains_num</code> counter will be reset to the maximum value of <a href="https://corefork.telegram.org/api/config#transcribe-audio-trial-weekly-number">transcribe_audio_trial_weekly_number</a>.
    ///</summary>
    int? TrialRemainsUntilDate { get; set; }
}
