Method: TelegramBot::ChatBoost#list_invalid_properties

Defined in:
lib/telegram-bot/models/chat_boost.rb

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# File 'lib/telegram-bot/models/chat_boost.rb', line 104

def list_invalid_properties
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
  invalid_properties = Array.new
  if @boost_id.nil?
    invalid_properties.push('invalid value for "boost_id", boost_id cannot be nil.')
  end

  if @add_date.nil?
    invalid_properties.push('invalid value for "add_date", add_date cannot be nil.')
  end

  if @expiration_date.nil?
    invalid_properties.push('invalid value for "expiration_date", expiration_date cannot be nil.')
  end

  if @source.nil?
    invalid_properties.push('invalid value for "source", source cannot be nil.')
  end

  invalid_properties
end