Method: TelegramBot::BusinessMessagesDeleted#list_invalid_properties

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

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/telegram-bot/models/business_messages_deleted.rb', line 95

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

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

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

  invalid_properties
end