Class: TD::Types::Update::SpeechRecognitionTrial

Inherits:
TD::Types::Update show all
Defined in:
lib/tdlib/types/update/speech_recognition_trial.rb

Overview

The parameters of speech recognition without Telegram Premium subscription has changed.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#left_countInteger

Number of left speech recognition attempts this week.

Returns:

  • (Integer)

    the current value of left_count



10
11
12
# File 'lib/tdlib/types/update/speech_recognition_trial.rb', line 10

def left_count
  @left_count
end

#max_media_durationInteger

The maximum allowed duration of media for speech recognition without Telegram Premium subscription, in seconds.

Returns:

  • (Integer)

    the current value of max_media_duration



10
11
12
# File 'lib/tdlib/types/update/speech_recognition_trial.rb', line 10

def max_media_duration
  @max_media_duration
end

#next_reset_dateInteger

Point in time (Unix timestamp) when the weekly number of tries will reset; 0 if unknown.

Returns:

  • (Integer)

    the current value of next_reset_date



10
11
12
# File 'lib/tdlib/types/update/speech_recognition_trial.rb', line 10

def next_reset_date
  @next_reset_date
end

#weekly_countInteger

The total number of allowed speech recognitions per week; 0 if none.

Returns:

  • (Integer)

    the current value of weekly_count



10
11
12
# File 'lib/tdlib/types/update/speech_recognition_trial.rb', line 10

def weekly_count
  @weekly_count
end