Method: TelegramBot::InputMediaVideo#list_invalid_properties

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

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



167
168
169
170
171
172
173
174
175
176
177
178
179
# File 'lib/telegram-bot/models/input_media_video.rb', line 167

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

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

  invalid_properties
end